vue2-client 1.22.36 → 1.22.37
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/utils/login.js +0 -2
package/package.json
CHANGED
package/src/utils/login.js
CHANGED
|
@@ -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
|
}
|