From f2e14fbd69737ca7717835fcc4e02c0f01de10d4 Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期一, 02 二月 2026 10:12:42 +0800
Subject: [PATCH] fix: 修复扫码时code参数格式不一致导致的解析错误
---
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