|
@@ -17,7 +17,7 @@
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="button-group">
|
|
|
|
|
|
+ <div v-if="disabled" class="button-group">
|
|
<a
|
|
<a
|
|
class="button-group-mnemonic a-link im-copy-btn"
|
|
class="button-group-mnemonic a-link im-copy-btn"
|
|
:data-clipboard-text="walletData.words"
|
|
:data-clipboard-text="walletData.words"
|
|
@@ -55,8 +55,10 @@ const loading = ref(false);
|
|
const walletData = ref({
|
|
const walletData = ref({
|
|
words: [],
|
|
words: [],
|
|
});
|
|
});
|
|
|
|
+const disabled = ref(false);
|
|
|
|
|
|
const next = async () => {
|
|
const next = async () => {
|
|
|
|
+
|
|
// 登录
|
|
// 登录
|
|
loading.value = true;
|
|
loading.value = true;
|
|
await walletStore.loginWithPrivateKey();
|
|
await walletStore.loginWithPrivateKey();
|
|
@@ -69,6 +71,7 @@ const next = async () => {
|
|
|
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
const { data } = await createAccent({});
|
|
const { data } = await createAccent({});
|
|
|
|
+ disabled.value = true
|
|
walletData.value = JSON.parse(atob(data.content));
|
|
walletData.value = JSON.parse(atob(data.content));
|
|
walletStore.account = walletData.value.address;
|
|
walletStore.account = walletData.value.address;
|
|
walletStore.privateKey = walletData.value.privateKey;
|
|
walletStore.privateKey = walletData.value.privateKey;
|