李帅 2 dni temu
rodzic
commit
275e4aad95
3 zmienionych plików z 6 dodań i 5 usunięć
  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 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 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
 }

+ 3 - 2
src/utils/baseUrl.js

@@ -8,15 +8,16 @@ if(pathname === '/' || pathname === "/postcheck") {
8 8
 export const getBaseUrl = () => {
9 9
     const type = window.localStorage.getItem("isPathType")
10 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 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 15
     // 内控开发IP
15 16
     // const url = type === 1 ? 'http://10.152.164.68:8180' : 'http://10.152.164.68:8180';
16 17
     // const url = type === 1 ? 'http://10.152.164.69:8180' : 'http://10.152.164.69:8180';
17 18
 
18 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 23
   //   const url = type == 1 ? 'http://localhost:8180' : 'http://localhost:8180';