From 888f941ae16c850c0f1a844ec9436058840920bd Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期五, 24 四月 2026 09:19:02 +0800
Subject: [PATCH] 推送

---
 App.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/App.vue b/App.vue
index b4187e8..e4ebf7d 100644
--- a/App.vue
+++ b/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");
     
     // 濡傛灉鎺ュ彛杩斿洖鎴愬姛锛岃鏄巘oken鏈夋晥锛岀户缁幏鍙栫敤鎴蜂俊鎭�
-    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)) {

--
Gitblit v1.9.3