vue2-client 1.11.6-alpha → 1.11.6-alpha.2
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/user.js +1 -1
- package/src/utils/request.js +2 -2
package/package.json
CHANGED
package/src/services/user.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import { request, METHOD, removeAuthorization } from '@vue2-client/utils/request'
|
|
10
10
|
import EncryptUtil from '@vue2-client/utils/EncryptUtil'
|
|
11
11
|
import axios from 'axios'
|
|
12
|
-
import { V4_SESSION_KEY } from '
|
|
12
|
+
import { V4_SESSION_KEY } from '@vue2-client/store/mutation-types'
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* 登录服务
|
package/src/utils/request.js
CHANGED
|
@@ -11,7 +11,7 @@ import qs from 'qs'
|
|
|
11
11
|
import { logout, V4RefreshToken } from '@vue2-client/services/user'
|
|
12
12
|
import { LOGIN, SEARCH, V4_LOGIN } from '@vue2-client/services/apiService'
|
|
13
13
|
import { setV4AccessToken } from '@vue2-client/utils/login'
|
|
14
|
-
|
|
14
|
+
import EncryptUtil from '@vue2-client/utils/EncryptUtil'
|
|
15
15
|
// 是否显示重新登录
|
|
16
16
|
let isReloginShow
|
|
17
17
|
|
|
@@ -168,7 +168,7 @@ function loadInterceptors () {
|
|
|
168
168
|
!config.url.includes('auth/login')) {
|
|
169
169
|
if (config.data && !(config.data instanceof FormData)) {
|
|
170
170
|
config.data = {
|
|
171
|
-
encrypted:
|
|
171
|
+
encrypted: EncryptUtil.AESEncryptCBC(config.data, v4SessionKey)
|
|
172
172
|
}
|
|
173
173
|
config.headers['X-Sec'] = '1'
|
|
174
174
|
config.headers['X-Rand'] = Math.random().toString(36).substr(2, 5)
|