From 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 18:09:58 +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