From 8cc901ed214f3885b34a07d0520fbcfd50063439 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 19 十一月 2025 14:30:39 +0800
Subject: [PATCH] fix: 完成绞线自检,生产确认等功能新增
---
src/pages/index/index.vue | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 46174fc..747bfa2 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -93,6 +93,7 @@
import WorkerCallingCard from "@/components/worker-calling-card/index.vue";
import HomeApi from "@/api/home";
import { useUserStore } from "@/store/modules/user";
+import { setTeamId, setPrepareId } from "@/utils/cache";
const visitStatsData = ref<VisitStatsVO>({
todayUvCount: 0,
@@ -249,6 +250,16 @@
checkVersion();
const { data } = await HomeApi.getIndex();
+ // 瀛樺偍鐝粍ID鍜岀敓浜у噯澶嘔D
+ if (data) {
+ if (data.team) {
+ setTeamId(data.team);
+ }
+ if (data.prepareId) {
+ setPrepareId(data.prepareId);
+ }
+ }
+
// 鍒ゆ柇鏄惁涓哄贰妫�鍛樿鑹�
if (data.deviceGroupName == "鏃舵晥缁�") {
navList[1].show = true;
--
Gitblit v1.9.3