feat: 调整了登录的逻辑

This commit is contained in:
2026-05-12 21:17:11 +08:00
parent f0b6e86e64
commit 0f6d8f7ff1
7 changed files with 200 additions and 120 deletions

View File

@@ -7,14 +7,9 @@ import { getAccessToken } from "@/constant/token";
onLaunch(async () => {
/// 获取环境配置
await getEvnUrl();
/// 获取token
const token = getAccessToken();
if (token) {
/// 刷新token
refreshToken();
}
/// 刷新token
await refreshToken();
});
onShow(() => {