From fc241324087e605b145e8bbcc4ee3aece61dbf14 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 21 三月 2022 15:59:45 +0800 Subject: [PATCH] 2022-03-21 --- src/index.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/index.js b/src/index.js index 6b7fa3e..bb2bff3 100644 --- a/src/index.js +++ b/src/index.js @@ -110,6 +110,8 @@ GLOB.mainSystemApi = '' } + GLOB.debugger = options.sysType === 'local' && GLOB.systemType !== 'production' + if (options.sysType !== 'cloud') { if (config.appkey === options.cakey) { document.getElementById('root').innerHTML = '<div style="text-align: center; font-size: 30px; margin-top: 40vh;">涓嶅彲浣跨敤浜戠appkey锛岃鑱旂郴绠$悊鍛橈紒</div>' @@ -223,6 +225,10 @@ writable: false, value: GLOB.systemType }) + Object.defineProperty(GLOB, 'debugger', { + writable: false, + value: GLOB.debugger + }) Object.defineProperty(GLOB, 'mainSystemApi', { writable: false, value: GLOB.mainSystemApi -- Gitblit v1.8.0