2 Commits 56dbc1f457 ... 0e04806491

Author SHA1 Message Date
  李帅 0e04806491 Merge branch 'master' of http://101.42.248.108:3000/wangyu/post-check-web 2 days ago
  李帅 275e4aad95 post 2 days ago
3 changed files with 14 additions and 5 deletions
  1. 1 1
      .env.production
  2. 2 2
      src/api/system/user.js
  3. 11 2
      src/utils/baseUrl.js

+ 1 - 1
.env.production

@@ -5,7 +5,7 @@ VUE_APP_TITLE = 惠州石化
5 5
 ENV = 'production'
6 6
 
7 7
 # 若依管理系统/生产环境
8
-VUE_APP_BASE_API = 'http://101.42.248.108:17005'
8
+VUE_APP_BASE_API = 'http://10.152.72.7:8180'
9 9
 
10 10
 # 内控开发IP
11 11
 # VUE_APP_BASE_API = 'http://10.152.164.68:8180'

+ 2 - 2
src/api/system/user.js

@@ -30,8 +30,8 @@ export function addUser(data) {
30 30
 // 修改用户
31 31
 export function updateUser(data) {
32 32
   return request({
33
-    url: '/system/user',
34
-    method: 'put',
33
+    url: '/system/user/edit',
34
+    method: 'post',
35 35
     data: data
36 36
   })
37 37
 }

+ 11 - 2
src/utils/baseUrl.js

@@ -7,8 +7,17 @@ if(pathname === '/' || pathname === "/postcheck") {
7 7
 }
8 8
 export const getBaseUrl = () => {
9 9
     const type = window.localStorage.getItem("isPathType")
10
-  // 惠州石化服务器IP-生产
11
-  const url = type === 1 ? 'http://10.152.72.7:8180' : 'http://10.152.72.7:8180';
10
+    // 阿里云IP
11
+    // const url = type === 1 ? 'http://39.106.66.72:8180' : 'http://39.106.66.72:8180';
12
+    // const url = type == 1 ? 'http://192.168.3.200:8180' : 'http://192.168.3.200:8180';
13
+    // const url = type == 1 ? 'http://192.168.3.242:8182' : 'http://192.168.3.242:8182';
14
+
15
+    // 内控开发IP
16
+    // const url = type === 1 ? 'http://10.152.164.68:8180' : 'http://10.152.164.68:8180';
17
+    // const url = type === 1 ? 'http://10.152.164.69:8180' : 'http://10.152.164.69:8180';
18
+
19
+    // 惠州石化服务器IP
20
+    const url = type == 1 ? 'http://10.152.72.7:8180' : 'http://10.152.72.7:8180';
12 21
 
13 22
   // 阿里云IP
14 23
     // const url = type === 1 ? 'http://101.42.248.108:17005' : 'http://101.42.248.108:17005';