From a73d4adcf2c126341f79df176b2318cd2cb38eae Mon Sep 17 00:00:00 2001 From: xiaomu Date: Sun, 8 May 2022 17:58:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(user):=20getInfo=E3=80=81getInfo=20api=20ne?= =?UTF-8?q?twork=20error=20causing=20infinite=20retries=20(#100)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 77f2348ea..26922eac9 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -84,6 +84,7 @@ export const useUserStore = defineStore({ return { menus, perms, userInfo }; } catch (error) { + return Promise.reject(error); // return this.logout(); } },