fix(mobile): 添加API错误处理和超时提示
This commit is contained in:
@@ -51,7 +51,10 @@ const loadTenants = async () => {
|
|||||||
currentTenantName.value = tenantOptions.value[0].label
|
currentTenantName.value = tenantOptions.value[0].label
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) { console.error(e) }
|
} catch (e) {
|
||||||
|
console.error('加载租户失败:', e)
|
||||||
|
errorMsg.value = '无法连接服务器,请检查网络'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const onTenantChange = () => {
|
const onTenantChange = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user