This commit is contained in:
yangsy
2025-08-15 02:25:24 +08:00
parent bf2fb8ffef
commit 32e355c325
2 changed files with 22 additions and 7 deletions

View File

@@ -78,11 +78,11 @@ export const useUserStore = defineStore(
};
const userGetInfo = async () => {
const [err, userInfo] = await userClient.get<any>(`/api/oauth/anyone/getUserInfoById`);
if (err || !userInfo) {
const [err, info] = await userClient.get<any>(`/api/oauth/anyone/getUserInfoById`);
if (err || !info) {
throw err;
}
userInfo.value = userInfo;
userInfo.value = info;
};
const userGetResourceList = async () => {