From 6c56a138c17dc9aff9d175d20645eb176d2e024b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 03 三月 2021 19:03:18 +0800 Subject: [PATCH] 2021-03-03 --- src/index.js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index a1f9912..f53f790 100644 --- a/src/index.js +++ b/src/index.js @@ -59,7 +59,8 @@ // 娴嬭瘯绯荤粺鏂囦欢缃簬admin涓� -fetch('./options.json') +// fetch(process.env.NODE_ENV === 'production' ? '../options.json' : './options.json') +fetch('../options.json') .then(response => response.json()) .catch(() => { document.getElementById('root').innerHTML = '<div style="text-align: center; font-size: 30px; margin-top: 40vh;">绯荤粺閰嶇疆淇℃伅鑾峰彇澶辫触锛岃鑱旂郴绠$悊鍛橈紒</div>' @@ -159,7 +160,7 @@ GLOB.webSite = _systemMsg.webSite GLOB.style = _systemMsg.style GLOB.showline = _systemMsg.showline || '' - GLOB.navBar = _systemMsg.navBar || 'sidemenu' + GLOB.navBar = _systemMsg.navBar || '' if (GLOB.favicon) { let link = document.querySelector("link[rel*='icon']") || document.createElement('link') -- Gitblit v1.8.0