From 31f3df9932ee96ae1432e7283e54140758817ddc Mon Sep 17 00:00:00 2001
From: qsh <>
Date: Tue, 20 Aug 2024 15:30:28 +0800
Subject: [PATCH] sc
---
src/store/modules/user.ts | 2 +-
src/views/Clue/Pool/Comp/DialogSchoolInfo.vue | 26 +++++++++++++++++++
2 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index e6dbe34..21be6eb 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -49,7 +49,7 @@ export const useUserStore = defineStore('admin-user', {
return null
}
let userInfo = cache.local.get(CACHE_KEY.USER)
- if (!userInfo) {
+ if (!userInfo || !userInfo?.menus || userInfo.menus.length == 0) {
userInfo = await getInfo({})
}
this.permissions = userInfo.permissions
diff --git a/src/views/Clue/Pool/Comp/DialogSchoolInfo.vue b/src/views/Clue/Pool/Comp/DialogSchoolInfo.vue
index 20a6bdb..57c95ce 100644
--- a/src/views/Clue/Pool/Comp/DialogSchoolInfo.vue
+++ b/src/views/Clue/Pool/Comp/DialogSchoolInfo.vue
@@ -1,18 +1,44 @@
+
+ 场地班型
+
+
+
+
+
+
+
+
+
+ 点击查看
+
+
+
+
+
+
+
+ 场地详细信息