24 lines
625 B
Vue
Raw Normal View History

2025-10-22 00:16:32 +07:00
<script setup lang="ts">
2025-10-29 19:55:44 +07:00
import { ImportWalletComponent } from '.'
import { useRouter } from 'vue-router'
2025-10-22 00:16:32 +07:00
2025-10-29 19:55:44 +07:00
const router = useRouter()
2025-10-23 03:27:02 +07:00
2025-10-28 22:57:03 +07:00
const handleImported = (payload: { type: 'seed' | 'keystore'; value: string | string[] }) => {
2025-10-29 19:55:44 +07:00
if (payload.type === 'keystore') {
localStorage.setItem('temp_keystore', JSON.stringify(payload.value))
return router.push({ name: 'password' })
}
2025-10-22 00:16:32 +07:00
}
</script>
<template>
<div class="login-tab">
2025-10-29 19:55:44 +07:00
<ImportWalletComponent @import-success="handleImported" />
2025-10-22 00:16:32 +07:00
</div>
</template>
<style lang="scss" scoped>
.login-tab {
padding: var(--spacing-lg);
}
</style>