Parcourir la source

移除本地开发、测试和正式环境的配置代码

zhuf il y a 5 mois
Parent
commit
9faa73f92c
1 fichiers modifiés avec 0 ajouts et 43 suppressions
  1. 0 43
      public/config.js

+ 0 - 43
public/config.js

@@ -9,49 +9,6 @@ if (isIE) {
     document.getElementById('app').innerHTML = '<h1 style="width:960px;margin:200px auto;font-size:32px;font-weight:700;">您的浏览器版本过低,请升级浏览器以获取更好的体验!<br>推荐使用 <a href="https://www.microsoft.com/zh-cn/edge" style="color:blue">Microsoft Edge</a> 或者 <a href="https://www.google.com/chrome" style="color:blue">Google Chrome</a> 浏览器。<br>如果您使用的是双核浏览器,请切换到极速模式访问</h1>'
 }
 
-// 本地开发环境
-const local = {
-  // web_pc: 'https://tyyx.bozedu.top/',
-  // web_mobile: 'https://tyyxm.bozedu.top/',
-
-  api: "https://openapi.bozedu.top/",
-  oss: "https://openapi.bozedu.top/",
-  uc: "https://uc.bozedu.top/",
-  myxjyszptx: "https://myxjyszptxapi.bozedu.top/",
-  origin: window.location.origin,
-};
-
-// 测试服环境
-const development = {
-    web_pc: 'https://myxjyszptxweb.bozedu.top/',
-
-    origin: window.location.origin,
-    api: 'https://openapi.dev.bozedu.net/',
-    oss: 'https://openapi.dev.bozedu.net/',
-    uc: 'https://uc.dev.bozedu.net/',
-    myxjyszptx: 'https://myxjyszptxapi.bozedu.top/',
-}
-
-// // 正式服环境
-const production = {
-    web_pc: 'https://myxjyszptxweb.bozedu.net/',
-
-    origin: window.location.origin,
-    api: 'https://openapi.bozedu.net/',
-    oss: 'https://openapi.bozedu.net/',
-    uc: 'https://uc.bozedu.net/',
-    myxjyszptx: 'https://myxjyszptxapi.bozedu.net/',
-}
-
-function isWhich() {
-    if (window.location.href.indexOf(development.web_pc) === 0) {
-        return development
-    } else if (window.location.href.indexOf(production.web_pc) === 0) {
-        return production
-    } else {
-        return local
-    }
-}
 window.GLOBAL_CONFIG = {
     web_pc: 'https://myxjyszptxweb.bozedu.net/',