flat: 暂存

This commit is contained in:
Apcallover
2025-11-24 14:33:23 +08:00
parent 6af1a5def7
commit 9f92fc47cb
7 changed files with 16 additions and 251 deletions

View File

@@ -1,3 +1,4 @@
import '@/lib/encryption/sm4.min.js'
import useUserStore from "../stores/useUserStore";
import {
createRequest,
@@ -7,9 +8,6 @@ import streamRequest, {
chatRequest
} from "../utils/streamRequest.js";
const sm4 = typeof window.sm4 !== 'undefined' ? window.sm4 :
(typeof window.smCrypto !== 'undefined' ? window.smCrypto.sm4 : null);
export const CloneDeep = (props) => {
if (typeof props !== 'object' || props === null) {
return props
@@ -564,7 +562,6 @@ function aes_Decrypt(word, key) {
})
return decrypt.toString(CryptoJS.enc.Utf8)
}
export function sm2_Decrypt(word, key) {
return SM.decrypt(word, key);
}
@@ -588,7 +585,7 @@ export function sm4Decrypt(key, value, mode = "hex") {
return decrypted
} catch (e) {
console.log('解密失败')
console.log('解密失败', e)
}
}