李帅 2 days ago
parent
commit
275e4aad95
3 changed files with 6 additions and 5 deletions
  1. 1 1
      .env.production
  2. 2 2
      src/api/system/user.js
  3. 3 2
      src/utils/baseUrl.js

+ 1 - 1
.env.production

@@ -5,7 +5,7 @@ VUE_APP_TITLE = 惠州石化
5
 ENV = 'production'
5
 ENV = 'production'
6
 
6
 
7
 # 若依管理系统/生产环境
7
 # 若依管理系统/生产环境
8
-VUE_APP_BASE_API = 'http://39.106.66.72:8180'
8
+VUE_APP_BASE_API = 'http://10.152.72.7:8180'
9
 
9
 
10
 # 内控开发IP
10
 # 内控开发IP
11
 # VUE_APP_BASE_API = 'http://10.152.164.68:8180'
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
 export function updateUser(data) {
31
 export function updateUser(data) {
32
   return request({
32
   return request({
33
-    url: '/system/user',
34
-    method: 'put',
33
+    url: '/system/user/edit',
34
+    method: 'post',
35
     data: data
35
     data: data
36
   })
36
   })
37
 }
37
 }

+ 3 - 2
src/utils/baseUrl.js

@@ -8,15 +8,16 @@ if(pathname === '/' || pathname === "/postcheck") {
8
 export const getBaseUrl = () => {
8
 export const getBaseUrl = () => {
9
     const type = window.localStorage.getItem("isPathType")
9
     const type = window.localStorage.getItem("isPathType")
10
     // 阿里云IP
10
     // 阿里云IP
11
-    const url = type === 1 ? 'http://39.106.66.72:8180' : 'http://39.106.66.72:8180';
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';
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';
13
 
14
 
14
     // 内控开发IP
15
     // 内控开发IP
15
     // const url = type === 1 ? 'http://10.152.164.68:8180' : 'http://10.152.164.68:8180';
16
     // const url = type === 1 ? 'http://10.152.164.68:8180' : 'http://10.152.164.68:8180';
16
     // const url = type === 1 ? 'http://10.152.164.69:8180' : 'http://10.152.164.69:8180';
17
     // const url = type === 1 ? 'http://10.152.164.69:8180' : 'http://10.152.164.69:8180';
17
 
18
 
18
     // 惠州石化服务器IP
19
     // 惠州石化服务器IP
19
-    // const url = type == 1 ? 'http://10.152.72.5:8180' : 'http://10.152.72.5:8180';
20
+    const url = type == 1 ? 'http://10.152.72.7:8180' : 'http://10.152.72.7:8180';
20
 
21
 
21
   // 开发本机
22
   // 开发本机
22
   //   const url = type == 1 ? 'http://localhost:8180' : 'http://localhost:8180';
23
   //   const url = type == 1 ? 'http://localhost:8180' : 'http://localhost:8180';