flat: 暂存
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user