Kaynağa Gözat

子女帮后台

廖雁生 9 ay önce
ebeveyn
işleme
81838d9f45
2 değiştirilmiş dosya ile 5 ekleme ve 4 silme
  1. 3 2
      config/index.js
  2. 2 2
      src/views/login/index.vue

+ 3 - 2
config/index.js

@@ -8,7 +8,8 @@ module.exports = {
     assetsPublicPath: '/',
     proxyTable: {
       '/api': {
-        target: 'http://192.168.2.226:9997',//long后端接口地址
+        target: 'http://blinddate.havedate.cn/admin-api',
+        //target: 'http://192.168.2.226:9997',//long后端接口地址
         //target: 'http://192.168.2.10:9999',//内网后端接口地址
         changeOrigin: true,  //是否跨域
         pathRewrite: {
@@ -18,7 +19,7 @@ module.exports = {
     },
 
     // 本地开发使用
-    host: '192.168.2.59',
+    host: 'localhost',
     port: 8080,
     autoOpenBrowser: true,
     errorOverlay: true,

+ 2 - 2
src/views/login/index.vue

@@ -163,8 +163,8 @@ export default {
       this.loginForm.code = ''
       this.loginForm.t = new Date().getTime()
       //this.src = process.env.BASE_API + '/captcha?t=' + this.loginForm.t
-      //this.src = 'http://blinddate.havedate.cn/admin-api' + '/captcha?t=' + this.loginForm.t
-      this.src = 'http://192.168.2.226:9997/admin-api/captcha?t=' + this.loginForm.t
+      this.src = 'http://blinddate.havedate.cn/admin-api' + '/captcha?t=' + this.loginForm.t
+      //this.src = 'http://192.168.2.226:9997/admin-api/captcha?t=' + this.loginForm.t
     }
   }
 }