App.vue
@@ -35,13 +35,13 @@ } // 校验token有效性:通过调用/current/user/current_roles接口 const current = await uni.$uapi.get("/system/user/profile"); const current = await uni.$uapi.get("/getInfo"); // 如果接口返回成功,说明token有效,继续获取用户信息 if (current ) { if (current) { // const resuser = await uni.$uapi.get("/system/user/profile"); userStore.setUserInfo(current); // userStore.setroleKey(current[0].roleKey); userStore.setUserInfo(current.user); userStore.setroleKey(current.roles); // 如果当前是登录页,跳转首页 if (isPageInWhiteList(currentPage)) {