vue2-client 1.8.0-4 → 1.8.0-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/services/apiService.js +2 -2
- package/src/utils/request.js +2 -1
- package/vue.config.js +0 -5
package/package.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
LOGIN: `/rs/logic/getLogin`,
|
|
7
7
|
MODIFY_PASSWORD: '/rs/user/modifypwd',
|
|
8
|
-
V4_LOGIN: '/auth/login',
|
|
9
|
-
V4_LOGOUT: '/auth/logout',
|
|
8
|
+
V4_LOGIN: '/api/af-auth/login',
|
|
9
|
+
V4_LOGOUT: '/api/af-auth/logout',
|
|
10
10
|
ROUTES: `/rs/user/userLogin`,
|
|
11
11
|
SEARCH: `/rs/search`,
|
|
12
12
|
GOODS: `/goods`,
|
package/src/utils/request.js
CHANGED
|
@@ -5,6 +5,7 @@ import notification from 'ant-design-vue/es/notification'
|
|
|
5
5
|
import errorCode from '@vue2-client/utils/errorCode'
|
|
6
6
|
import qs from 'qs'
|
|
7
7
|
import { logout } from '@vue2-client/services/user'
|
|
8
|
+
import { V4_LOGIN } from '@vue2-client/services/apiService'
|
|
8
9
|
|
|
9
10
|
// 是否显示重新登录
|
|
10
11
|
let isReloginShow
|
|
@@ -134,7 +135,7 @@ function loadInterceptors () {
|
|
|
134
135
|
// 如果 token 存在
|
|
135
136
|
// 让每个请求携带自定义 token 请根据实际情况自行修改
|
|
136
137
|
if (token) {
|
|
137
|
-
if (config.url !==
|
|
138
|
+
if (config.url !== V4_LOGIN) {
|
|
138
139
|
// 判断是否为V4环境
|
|
139
140
|
const compatible = getSystemVersion()
|
|
140
141
|
if (compatible === 'V4') {
|
package/vue.config.js
CHANGED
|
@@ -24,11 +24,6 @@ module.exports = {
|
|
|
24
24
|
ws: false,
|
|
25
25
|
changeOrigin: true
|
|
26
26
|
},
|
|
27
|
-
'/auth': {
|
|
28
|
-
pathRewrite: { '^/auth/': '/rs/auth/' },
|
|
29
|
-
target: local,
|
|
30
|
-
changeOrigin: true
|
|
31
|
-
},
|
|
32
27
|
'/api': {
|
|
33
28
|
pathRewrite: { '^/api/af-system/': '/rs/', '^/api/af-iot/': '/rs/' },
|
|
34
29
|
// pathRewrite: { '^/api': '/' },
|