ソースを参照

Merge branch 'master' of http://101.42.248.108:3000/wangyu/post-check-web

李帅 2 日 前
コミット
0e04806491
共有4 個のファイルを変更した17 個の追加13 個の削除を含む
  1. 1 1
      .env.development
  2. 3 1
      src/utils/baseUrl.js
  3. 12 10
      src/views/login.vue
  4. 1 1
      vue.config.js

+ 1 - 1
.env.development

@@ -7,7 +7,7 @@ ENV = 'development'
7 7
 # 若依管理系统/开发环境
8 8
 # VUE_APP_BASE_API = '/prod-api'
9 9
 # 阿里云IP
10
-VUE_APP_BASE_API = 'http://39.106.66.72:8180'
10
+VUE_APP_BASE_API = 'http://101.42.248.108:17005'
11 11
 
12 12
 # 内控开发IP
13 13
 # VUE_APP_BASE_API = 'http://10.152.164.68:8180'

+ 3 - 1
src/utils/baseUrl.js

@@ -19,8 +19,10 @@ export const getBaseUrl = () => {
19 19
     // 惠州石化服务器IP
20 20
     const url = type == 1 ? 'http://10.152.72.7:8180' : 'http://10.152.72.7:8180';
21 21
 
22
+  // 阿里云IP
23
+    // const url = type === 1 ? 'http://101.42.248.108:17005' : 'http://101.42.248.108:17005';
22 24
   // 开发本机
23
-  //   const url = type == 1 ? 'http://localhost:8180' : 'http://localhost:8180';
25
+  //   const url = type === 1 ? 'http://127.0.0.1:8180' : 'http://127.0.0.1:8180';
24 26
 
25 27
     return url
26 28
 }

+ 12 - 10
src/views/login.vue

@@ -93,6 +93,8 @@ export default {
93 93
       loginForm: {
94 94
         username: "",
95 95
         password: "",
96
+        // username: "ganjiantest",
97
+        // password: "Hzsh.eitc@6626.admin",
96 98
         rememberMe: false,
97 99
         code: "",
98 100
         uuid: "",
@@ -127,16 +129,16 @@ export default {
127 129
     this.getCookie();
128 130
   },
129 131
   methods: {
130
-    getCode() {
131
-      getCodeImg().then((res) => {
132
-        this.captchaEnabled =
133
-          res.captchaEnabled === undefined ? true : res.captchaEnabled;
134
-        if (this.captchaEnabled) {
135
-          this.codeUrl = "data:image/gif;base64," + res.img;
136
-          this.loginForm.uuid = res.uuid;
137
-        }
138
-      });
139
-    },
132
+    // getCode() {
133
+    //   getCodeImg().then((res) => {
134
+    //     this.captchaEnabled =
135
+    //       res.captchaEnabled === undefined ? true : res.captchaEnabled;
136
+    //     if (this.captchaEnabled) {
137
+    //       this.codeUrl = "data:image/gif;base64," + res.img;
138
+    //       this.loginForm.uuid = res.uuid;
139
+    //     }
140
+    //   });
141
+    // },
140 142
     getCookie() {
141 143
       const username = Cookies.get("username");
142 144
       const password = Cookies.get("password");

+ 1 - 1
vue.config.js

@@ -45,7 +45,7 @@ module.exports = {
45 45
         // target: `http://localhost:8180`,
46 46
         // target: `http://192.168.3.90:8180`,
47 47
         // target: `http://10.152.164.68:8180`,
48
-        target: `http://10.152.72.5:8180`,
48
+        target: `http://10.152.72.7:8180`,
49 49
         changeOrigin: true
50 50
       }
51 51
     },