From 26cbae861ab0cb4b5d668030cea9f6d40da7d52f Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期二, 03 三月 2026 15:55:03 +0800
Subject: [PATCH] Revert "feat(登录): 添加自动登录功能"
---
src/pages/index/index.vue | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 2b23c76..662e7a6 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -278,14 +278,19 @@
}
}
- if (data.deviceGroupName.includes("涓�") || data.deviceGroupName.includes("缁�")) {
+ if (
+ (data.deviceGroupName && data.deviceGroupName.includes("涓�")) ||
+ (data.deviceGroupName && data.deviceGroupName.includes("缁�"))
+ ) {
// 濡傛灉鏄笣鎴栫粸锛屾樉绀虹敓浜х鐞嗚彍鍗�
navList[0].show = true;
}
+ console.log("isInspector.value", isInspector.value);
if (isInspector.value) {
// 濡傛灉鏄贰妫�鍛橈紝鏄剧ず宸℃鑿滃崟
navList[1].show = true;
}
+ console.log("isStorage.value", isStorage.value);
if (isStorage.value) {
// 濡傛灉鏄嚭搴撹鑹诧紝鏄剧ず鍑哄簱鑿滃崟
navList[2].show = true;
--
Gitblit v1.9.3