Browse Source

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

李帅 2 days ago
parent
commit
0e04806491
4 changed files with 17 additions and 13 deletions
  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
 # VUE_APP_BASE_API = '/prod-api'
8
 # VUE_APP_BASE_API = '/prod-api'
9
 # 阿里云IP
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
 # 内控开发IP
12
 # 内控开发IP
13
 # VUE_APP_BASE_API = 'http://10.152.164.68:8180'
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
     // 惠州石化服务器IP
19
     // 惠州石化服务器IP
20
     const url = type == 1 ? 'http://10.152.72.7:8180' : 'http://10.152.72.7:8180';
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
     return url
27
     return url
26
 }
28
 }

+ 12 - 10
src/views/login.vue

@@ -93,6 +93,8 @@ export default {
93
       loginForm: {
93
       loginForm: {
94
         username: "",
94
         username: "",
95
         password: "",
95
         password: "",
96
+        // username: "ganjiantest",
97
+        // password: "Hzsh.eitc@6626.admin",
96
         rememberMe: false,
98
         rememberMe: false,
97
         code: "",
99
         code: "",
98
         uuid: "",
100
         uuid: "",
@@ -127,16 +129,16 @@ export default {
127
     this.getCookie();
129
     this.getCookie();
128
   },
130
   },
129
   methods: {
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
     getCookie() {
142
     getCookie() {
141
       const username = Cookies.get("username");
143
       const username = Cookies.get("username");
142
       const password = Cookies.get("password");
144
       const password = Cookies.get("password");

+ 1 - 1
vue.config.js

@@ -45,7 +45,7 @@ module.exports = {
45
         // target: `http://localhost:8180`,
45
         // target: `http://localhost:8180`,
46
         // target: `http://192.168.3.90:8180`,
46
         // target: `http://192.168.3.90:8180`,
47
         // target: `http://10.152.164.68:8180`,
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
         changeOrigin: true
49
         changeOrigin: true
50
       }
50
       }
51
     },
51
     },