From 75f956534a20ecdec0716db3262477e5fb2c895b Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 25 Nov 2025 19:01:25 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/store/modules/app/index.js |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/store/modules/app/index.js b/src/store/modules/app/index.js
index 8ffada5..b77db8d 100644
--- a/src/store/modules/app/index.js
+++ b/src/store/modules/app/index.js
@@ -7,7 +7,9 @@
 const useAppStore = defineStore('app', {
   state: () => ({
     systemInfo: {}, // 原本 TS: {} as UniApp.GetSystemInfoResult
-    theme: storage.get(THEME_KEY) || 'light'
+    theme: storage.get(THEME_KEY) || 'light',
+    deviceUpdateKey: 0, //设备刷新key
+    jobUpdateKey: 0, //任务刷新key
   }),
   getters: {
     getSystemInfo (state) {
@@ -21,6 +23,13 @@
     setSystemInfo (info) {
       this.systemInfo = info
     },
+    setDeviceUpdateKeyAdd () {
+      console.log(111, this.deviceUpdateKey + 1)
+      this.deviceUpdateKey = this.deviceUpdateKey + 1
+    },
+    setJobUpdateKeyAdd (state, data) {
+      this.deviceUpdateKey = this.deviceUpdateKey + 1
+    },
     initSystemInfo () {
       uni.getSystemInfo({
         success: (res) => {

--
Gitblit v1.9.3