APP启动报错处理, APP加密处理,APP首页兼容处理

This commit is contained in:
2025-12-11 17:07:11 +08:00
parent cb1052346e
commit 3c8176f84e
11 changed files with 1801 additions and 1019 deletions

View File

@@ -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) {