APP启动报错处理, APP加密处理,APP首页兼容处理
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
// #ifdef H5
|
||||
import '@/lib/encryption/sm4.min.js'
|
||||
// #endif
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
import { sm4 } from 'sm-crypto';
|
||||
// #endif
|
||||
|
||||
import useUserStore from "../stores/useUserStore";
|
||||
import {
|
||||
createRequestWithCache,
|
||||
@@ -601,7 +608,6 @@ export function sm4Decrypt(key, value, mode = "hex") {
|
||||
cipherType: mode === 'hex' ? 'hex' : 'base64',
|
||||
padding: 'pkcs#5'
|
||||
});
|
||||
|
||||
return decrypted
|
||||
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user