liming 3 weeks ago
parent
commit
be8016d3af
2 changed files with 6 additions and 0 deletions
  1. 1 0
      src/i18n/zhHk/form.js
  2. 5 0
      src/views/login/backupMnemonic/index.vue

+ 1 - 0
src/i18n/zhHk/form.js

@@ -15,4 +15,5 @@ export default {
   PleaseFillIn: "請填寫",
   PleaseFillIn: "請填寫",
 
 
   LoginFailed: "登陸失敗",
   LoginFailed: "登陸失敗",
+  Loading: "加載中...",
 };
 };

+ 5 - 0
src/views/login/backupMnemonic/index.vue

@@ -31,6 +31,8 @@
         type="primary"
         type="primary"
         native-type="submit"
         native-type="submit"
         @click="next"
         @click="next"
+        :loading-text="$t('form.Loading')"
+        :loading="loading"
       >
       >
         {{ $t("login.BackupComplete") }}
         {{ $t("login.BackupComplete") }}
       </van-button>
       </van-button>
@@ -49,14 +51,17 @@ useCopy();
 const router = useRouter();
 const router = useRouter();
 const walletStore = useWalletStore();
 const walletStore = useWalletStore();
 
 
+const loading = ref(false);
 const walletData = ref({
 const walletData = ref({
   words: [],
   words: [],
 });
 });
 
 
 const next = async () => {
 const next = async () => {
   // 登录
   // 登录
+  loading.value = true;
   await walletStore.loginWithPrivateKey();
   await walletStore.loginWithPrivateKey();
   walletStore.$persist();
   walletStore.$persist();
+  loading.value = false;
   router.push({
   router.push({
     path: "/wallet",
     path: "/wallet",
   });
   });