Fan 4 тижнів тому
батько
коміт
2a3ce27fd2

+ 2 - 2
ui/smarttrade-platform/src/components/layout/TopBar.vue

@@ -49,9 +49,9 @@
           </div>
           <div class="panel-actions">
             <button class="action-text" @click="markAllAsRead">全部已读</button>
-            <button class="action-text" @click="openSettings">
+            <!-- <button class="action-text" @click="openSettings">
               <i class="fas fa-cog"></i>
-            </button>
+            </button> -->
           </div>
         </div>
 

+ 2 - 2
ui/smarttrade-platform/src/utils/jsencrypt.ts → ui/smarttrade-platform/src/utils/jsencrypt.js

@@ -7,7 +7,7 @@ const publicKey = import.meta.env.VITE_APP_RSA_PUBLIC_KEY;
 const privateKey = import.meta.env.VITE_APP_RSA_PRIVATE_KEY;
 
 // 加密
-export const encrypt = (txt: string | undefined) => {
+export const encrypt = (txt) => {
     if(!!!txt) {
         throw new Error('加密数据不能为空')
     }
@@ -17,7 +17,7 @@ export const encrypt = (txt: string | undefined) => {
 };
 
 // 解密
-export const decrypt = (txt: string) => {
+export const decrypt = (txt) => {
     const encryptor = new JSEncrypt();
     encryptor.setPrivateKey(privateKey); // 设置私钥
     return encryptor.decrypt(txt); // 对数据进行解密