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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.11.6-alpha",
3
+ "version": "1.11.6-alpha.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -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 '@/store/mutation-types'
12
+ import { V4_SESSION_KEY } from '@vue2-client/store/mutation-types'
13
13
 
14
14
  /**
15
15
  * 登录服务
@@ -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: encryptData(config.data, v4SessionKey)
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)