vue2-client 1.22.36 → 1.22.38

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.22.36",
3
+ "version": "1.22.38",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -175,8 +175,6 @@ function getWebConfigFromStorage() {
175
175
 
176
176
  /** 解析登录接口返回的 session 并写入 v4-session-key(受 webConfig.requestEncrypt 控制) */
177
177
  export function setV4SessionKey(res) {
178
- const webConfig = getWebConfigFromStorage()
179
- if (!res?.session || !webConfig?.setting?.requestEncrypt) return
180
178
  const sessionKey = EncryptUtil.RSADecryptRaw(res.session, RSA_PRIVATE_KEY)
181
179
  if (sessionKey) localStorage.setItem(V4_SESSION_KEY, sessionKey)
182
180
  }
@@ -249,7 +249,7 @@ function loadInterceptors() {
249
249
  !config.url.includes('/logic/openapi/') &&
250
250
  !config.url.includes('devApi') &&
251
251
  !config.url.includes('auth/login') &&
252
- config.url.includes('api/af-')
252
+ (config.url.includes('api/af-') || config.url.includes('rs/user/userLogin'))
253
253
  ) {
254
254
  if (config.data && !(config.data instanceof FormData)) {
255
255
  if (v4SessionKey) {