Explorar o código

修改服务器地址

shiyanyu hai 1 mes
pai
achega
4712faa6f9
Modificáronse 2 ficheiros con 7 adicións e 2 borrados
  1. 3 2
      public/config.js
  2. 4 0
      src/utils/request.js

+ 3 - 2
public/config.js

@@ -3,7 +3,7 @@
 // var host = 'http://10.7.13.26' // 以前
 // var host = 'http://116.204.117.33' //基本用这个
 // var host = 'http://101.33.208.140' // 测试
-var host = 'https://forty-mugs-stop.loca.lt/' // 测试
+var host = 'http://b463f4b7.natappfree.cc' // 后端服务
 // var host = 'http://localhost'
 // combine为true时五合一部署, 为false时分五个服务部署
 var combine = true
@@ -27,7 +27,8 @@ window.getModuleRootUrl = function (module) {
   if (!combine) {
     modulePort = defaultModulePortMap[module]
   }
-  return host + ':' + modulePort
+  // return host + ':' + modulePort
+  return host + modulePort
 }
 window.context = {
   manage: host + ':8280/mvue', //管理端页面

+ 4 - 0
src/utils/request.js

@@ -58,8 +58,12 @@ const handleCode = (code, msg) => {
 const instance = axios.create({
   baseURL,
   timeout: requestTimeout,
+  // headers: {
+  //   'Content-Type': contentType,
+  // },
   headers: {
     'Content-Type': contentType,
+    'ngrok-skip-browser-warning': 'true',
   },
 })