diff --git a/src/views/MainView.vue b/src/views/MainView.vue index 969fcc4..a0414ff 100644 --- a/src/views/MainView.vue +++ b/src/views/MainView.vue @@ -37,7 +37,10 @@ const generatedAddr = computed(() => { } return ''; }); - +const deleteAccount = () => { + accounts.value = accounts.value.filter((e) => e.id !== selectedAccountId.value); + selectedAccountId.value = accounts.value[0].id; +}; const copyAddr = () => { navigator.clipboard.writeText(generatedAddr.value); }; @@ -55,7 +58,7 @@ const copyAddr = () => {