소스 검색

api地址

xhj 2 년 전
부모
커밋
a258ce8ba9
4개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 1
      .env.production
  2. 1 1
      .env.test
  3. BIN
      dist_pro_rs_20230901.rar
  4. 1 1
      src/utlis/axios.js

+ 2 - 1
.env.production

@@ -1,3 +1,4 @@
 NODE_ENV = production
 NODE_ENV = production
 # 正式环境的ip端口
 # 正式环境的ip端口
-VUE_APP_BASE_API = 'https://mall.zhiqiyun.com'
+# VUE_APP_BASE_API = 'https://mall.zhiqiyun.com'
+VUE_APP_BASE_API = ''

+ 1 - 1
.env.test

@@ -1,7 +1,7 @@
 NODE_ENV = test
 NODE_ENV = test
 # 测试环境的ip端口
 # 测试环境的ip端口
 #VUE_APP_BASE_API = 'http://mptest.tongyu99.com'
 #VUE_APP_BASE_API = 'http://mptest.tongyu99.com'
-VUE_APP_BASE_API = 'http://mptest.zhiqiyun.com'
+# VUE_APP_BASE_API = 'http://mptest.zhiqiyun.com'
 # 快应用测试地址
 # 快应用测试地址
 # VUE_APP_BASE_API = 'http://kyytest.zhiqiyun.com'
 # VUE_APP_BASE_API = 'http://kyytest.zhiqiyun.com'
 # 本地测试地址
 # 本地测试地址

BIN
dist_pro_rs_20230901.rar


+ 1 - 1
src/utlis/axios.js

@@ -5,7 +5,7 @@ const service = axios.create({
   // baseURL: 'http://mptest.tongyu99.com',
   // baseURL: 'http://mptest.tongyu99.com',
   // baseURL: 'http://mall.zhiqiyun.com',
   // baseURL: 'http://mall.zhiqiyun.com',
   // baseURL: '/api',
   // baseURL: '/api',
-  baseURL: process.env.VUE_APP_BASE_API,
+  baseURL: process.env.VUE_APP_BASE_API+'/hkth5',
   timeout: 1000 * 180,
   timeout: 1000 * 180,
   headers: {
   headers: {
     "content-type": 'text/plain;charset=utf-8',
     "content-type": 'text/plain;charset=utf-8',