feat: 登录逻辑调整

This commit is contained in:
duanshuwen
2025-12-27 22:49:14 +08:00
parent ea56695099
commit 56ad450731
10 changed files with 93 additions and 75 deletions

View File

@@ -2,12 +2,12 @@
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { getEvnUrl } from "@/request/api/config";
import { refreshToken } from "@/hooks/useGoLogin";
import { getStorageSyncToken } from "@/constant/token";
import { getAccessToken } from "@/constant/token";
onLaunch(async () => {
await getEvnUrl({ versionValue: "1.0.3" });
const token = getStorageSyncToken();
const token = getAccessToken();
if (token) {
refreshToken();