wkw 3 dni temu
rodzic
commit
707ddc13f7
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 2 2
      src/stores/modules/walletStore.js
  2. 2 2
      src/updater/update.json

+ 2 - 2
src/stores/modules/walletStore.js

@@ -135,7 +135,7 @@ export const useWalletStore = defineStore("useWalletStore", {
       }
     },
     // 删除钱包
-    deleteWallet(id, password) {
+    async deleteWallet(id, password) {
       const wallet = this.walletList.find(item => item.id === id);
       if (!wallet) {
         showNotify({ type: 'warning', message: '钱包不存在' });
@@ -152,6 +152,7 @@ export const useWalletStore = defineStore("useWalletStore", {
         if (newList.length > 0) {
           // 切换到第一个钱包
           this.switchWallet(newList[0].id);
+          await this.loginWithPrivateKey();
           router.push({
             path: '/wallet'
           })
@@ -164,7 +165,6 @@ export const useWalletStore = defineStore("useWalletStore", {
           }
           this.isAuthenticated = false;
           this.id = '';
-
           router.push({
             path: '/login'
           })

+ 2 - 2
src/updater/update.json

@@ -1,8 +1,8 @@
 {
-  "version": "1.0.58",
+  "version": "1.0.0",
   "releaseDate": "2025-08-12 02:43:05",
   "checksum": "48e526eac4245521c54e9a6d9bfbec66f643528cd91c934bf44fbf07024a8dd3",
   "minBinaryVersion": "1.0.0",
-  "mandatory": true,
+  "mandatory": false,
   "upDataDescription": "✨修正一些錯誤。。。。!!!"
 }