瀏覽代碼

生产环境中去掉kd

张田田 3 天之前
父節點
當前提交
b78f35bced
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      .env.production
  2. 2 2
      src/views/Home.vue

+ 1 - 1
.env.production

@@ -1,6 +1,6 @@
 NODE_ENV = 'production'
 BASE_URL = './'
-VUE_APP_BASE_API = '/kd'
+VUE_APP_BASE_API = '/'
 #appid
 
 VUE_APP_CODE_IMG='http://101.133.232.97:8063/'

+ 2 - 2
src/views/Home.vue

@@ -52,7 +52,7 @@ export default {
       code: "",
 
       checked: false,
-      src: process.env.VUE_APP_BASE_API + "/captchaImage"
+      src: process.env.VUE_APP_BASE_API + "captchaImage"
     };
   },
   created() {
@@ -67,7 +67,7 @@ export default {
     async getCodeimg() {
       let res = await getCodeimg();
       let time = new Date().getTime();
-      this.src = process.env.VUE_APP_BASE_API + "/captchaImage?time=" + time;
+      this.src = process.env.VUE_APP_BASE_API + "captchaImage?time=" + time;
     },
     async login() {
       localStorage.removeItem("token");