From b7175585de65ddaf92c78294b7f2225b81fae2ac Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 15 八月 2023 14:22:40 +0800
Subject: [PATCH] Merge branch 'develop'

---
 src/index.js |   28 +++++++++++++++++-----------
 1 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/src/index.js b/src/index.js
index b798947..206bf3e 100644
--- a/src/index.js
+++ b/src/index.js
@@ -248,13 +248,6 @@
     GLOB.mkThdMenus = [] // 涓夌骇鑿滃崟
     GLOB.mkActions = {}  // 鎸夐挳鏉冮檺闆�
 
-    if (sessionStorage.getItem('breakpoint')) {
-      window.debugger = true
-      GLOB.breakpoint = sessionStorage.getItem('breakpoint')
-    } else {
-      GLOB.breakpoint = false
-    }
-
     Object.defineProperty(GLOB, 'appId', {
       writable: false,
       value: GLOB.appId
@@ -266,10 +259,6 @@
     Object.defineProperty(GLOB, 'systemType', {
       writable: false,
       value: GLOB.systemType
-    })
-    Object.defineProperty(GLOB, 'debugger', {
-      writable: false,
-      value: GLOB.debugger
     })
     Object.defineProperty(GLOB, 'mainSystemApi', {
       writable: false,
@@ -287,6 +276,23 @@
       writable: false,
       value: GLOB.cloudServiceApi || ''
     })
+
+    if (GLOB.sysType === 'cloud') {
+      Object.defineProperty(GLOB, 'debugger', {
+        writable: false,
+        value: GLOB.debugger
+      })
+
+      GLOB.breakpoint = false
+    } else {
+      if (sessionStorage.getItem('breakpoint')) {
+        GLOB.debugger = true
+        GLOB.breakpoint = sessionStorage.getItem('breakpoint')
+      } else {
+        GLOB.breakpoint = false
+      }
+    }
+
     Object.defineProperty(window, 'GLOB', {
       writable: false,
       value: GLOB

--
Gitblit v1.8.0