Browse Source

预发布域名

chenrui 4 years ago
parent
commit
65cf26cead
2 changed files with 3 additions and 2 deletions
  1. 1 1
      .env.preview
  2. 2 1
      vue.config.js

+ 1 - 1
.env.preview

@@ -1,5 +1,5 @@
 NODE_ENV=production
 VUE_APP_PREVIEW=true
-VUE_APP_API_BASE_URL=http://lese.test.sxzxyj.net/gc-admin
+VUE_APP_API_BASE_URL=https://lese.test.sxzxyj.net/gc-admin
 VUE_APP_VERSION=V1.0.1
 VUE_APP_PRO_NAME=智享亿家后台-pro

+ 2 - 1
vue.config.js

@@ -108,7 +108,8 @@ const vueConfig = {
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        target: 'http://192.168.16.104:8301/gc-admin/',
+        // target: 'http://192.168.16.104:8301/gc-admin/',
+        target: 'https://lese.test.sxzxyj.net/gc-admin/',
         ws: false,
         changeOrigin: true,
         pathRewrite: {