update 优化 全代码规范化处理

This commit is contained in:
疯狂的狮子Li
2024-11-26 15:29:22 +08:00
parent f203716f31
commit f3425493ed
45 changed files with 78 additions and 74 deletions

View File

@ -10,7 +10,7 @@ import FileSaver from 'file-saver';
import { getLanguage } from '@/lang';
import { encryptBase64, encryptWithAes, generateAesKey, decryptWithAes, decryptBase64 } from '@/utils/crypto';
import { encrypt, decrypt } from '@/utils/jsencrypt';
import router from "@/router";
import router from '@/router';
const encryptHeader = 'encrypt-key';
let downloadLoadingInstance: LoadingInstance;

View File

@ -9,10 +9,7 @@ export const initSSE = (url: any) => {
}
url = url + '?Authorization=Bearer ' + getToken() + '&clientid=' + import.meta.env.VITE_APP_CLIENT_ID;
const {
data,
error
} = useEventSource(url, [], {
const { data, error } = useEventSource(url, [], {
autoReconnect: {
retries: 10,
delay: 3000,