dev01 пре 1 година
родитељ
комит
03b7b5bc40
2 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 0
      config/dev.js
  2. 0 3
      src/constants/api.js

+ 4 - 0
config/dev.js

@@ -3,6 +3,9 @@ const isH5 = process.env.CLIENT_ENV === 'h5'
 const HOST = '"http://zhcq.jishutao.com"'
 const HOST_M = '"http://zhcq.jishutao.com"'
 
+// const HOST = '"http://172.16.0.255:8088"'
+// const HOST_M = '"http://172.16.0.255:8088"'
+
 module.exports = {
   env: {
     NODE_ENV: '"development"'
@@ -10,6 +13,7 @@ module.exports = {
   defineConstants: {
     // HOST: isH5 ? '"/api"' : HOST,
     HOST: isH5 ? '"http://zhcq.jishutao.com"' : HOST,
+    // HOST: isH5 ? '"http://172.16.0.255:8088"' : HOST,
     HOST_M: isH5 ? '"/api-m"' : HOST_M
   },
   weapp: {},

+ 0 - 3
src/constants/api.js

@@ -7,9 +7,6 @@ export const host = HOST
 export const hostM = HOST_M
 /* eslint-enable */
 
-// pic
-export const CDN = 'https://yanxuan.nosdn.127.net'
-
 export const API_USER_LOGIN = `${host}/gw/user/login` // 登录
 export const API_USER_Template= `${host}/gw/user/reportTemplate` // 模板列表
 export const API_USER_DELETE= `${host}/gw/user/reportTemplate` // 删除模板