BaiLuoYan 1 mese fa
parent
commit
d906b74d27

+ 9 - 10
src/styles/global.scss

@@ -5,9 +5,9 @@
     font-weight: 100 900;
     font-display: swap;
     src: url('@/assets/fonts/rem-latin-normal.woff2') format('woff2');
-    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
-        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
-        U+FEFF, U+FFFD;
+    unicode-range:
+        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
+        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
 }
 
 @font-face {
@@ -16,9 +16,9 @@
     font-weight: 100 900;
     font-display: swap;
     src: url('@/assets/fonts/rem-latin-italic.woff2') format('woff2');
-    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
-        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
-        U+FEFF, U+FFFD;
+    unicode-range:
+        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
+        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
 }
 
 /* Barlow — latin subset, regular 400 */
@@ -28,9 +28,9 @@
     font-weight: 400;
     font-display: swap;
     src: url('@/assets/fonts/barlow-latin-normal.woff2') format('woff2');
-    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
-        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
-        U+FEFF, U+FFFD;
+    unicode-range:
+        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
+        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
 }
 
 *,
@@ -413,4 +413,3 @@ div:focus {
         direction: rtl;
     }
 }
-

+ 1 - 5
src/utils/antdAppInstance.tsx

@@ -1,8 +1,4 @@
-import {
-    App,
-    message as defaultMessage,
-    notification as defaultNotification,
-} from 'antd';
+import { App, message as defaultMessage, notification as defaultNotification } from 'antd';
 
 import type { MessageInstance } from 'antd/es/message/interface';
 import type { NotificationInstance } from 'antd/es/notification/interface';

+ 1 - 1
src/utils/authUtils.ts

@@ -64,7 +64,7 @@ export function isAuthenticated(): boolean {
     const token = getToken();
     if (!token?.accessToken) return false;
     if (!token.accessExpires) return false;
-    return (token.accessExpires - currentUnixTimestamp()) > 0;
+    return token.accessExpires - currentUnixTimestamp() > 0;
 }
 
 /** 格式化token(jwt格式) */

+ 0 - 1
src/utils/crypto/index.ts

@@ -15,7 +15,6 @@ import { bigEndianToLittleEndian, littleEndianToBigEndian } from '@/utils/bytesU
 
 import { toBase64, fromBase64 } from './base64url';
 
-
 // ---------------------------------------------------------------------------
 // 常量
 // ---------------------------------------------------------------------------

+ 0 - 1
src/utils/requestCrypto.ts

@@ -1,4 +1,3 @@
-
 import globalConfig from '@/config';
 import { CompressMethod } from '@/config/types';
 import {