From 1fabdd59079ca45024b28a3e1d0c9f5457e95f16 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 19 十二月 2024 14:15:38 +0800
Subject: [PATCH] 2024-12-19

---
 src/views/main/index.jsx |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/views/main/index.jsx b/src/views/main/index.jsx
index 82241b8..6971bcf 100644
--- a/src/views/main/index.jsx
+++ b/src/views/main/index.jsx
@@ -32,10 +32,22 @@
         configurable: true,
         enumerable: true,
         set(value) {
-          if (value + '' === 'false') {
-            window.GLOB.debugger = false
-          } else {
+          if (value === true) {
             window.GLOB.debugger = true
+          } else if (value === 0) {
+            if (window.backend) {
+              sessionStorage.setItem('systemRun', 'front')
+              window.location.reload()
+            } else {
+              window.mkInfo('绯荤粺褰撳墠鏈娇鐢ㄥ悗绔剼鏈紒')
+            }
+          } else if (value === false) {
+            if (sessionStorage.getItem('systemRun') === 'front') {
+              sessionStorage.removeItem('systemRun')
+              window.location.reload()
+            } else {
+              window.GLOB.debugger = false
+            }
           }
         }
       })

--
Gitblit v1.8.0