refactor: routes and file

This commit is contained in:
张传龙
2022-09-04 12:18:47 +08:00
parent f1bc9edbac
commit bb171866b6
12 changed files with 43 additions and 244 deletions

View File

@@ -0,0 +1,21 @@
<template>
<CommonPage title="我是自定义Title">
<n-button type="primary" @click="handleLogin">
<icon-mdi:login mr-5 />
登陆
</n-button>
</CommonPage>
</template>
<script setup>
function handleLogin() {
$message.loading('登陆中...')
setTimeout(() => {
$message.error('登陆失败')
$message.loading('正在尝试重新登陆...')
setTimeout(() => {
$message.success('登陆成功')
}, 2000)
}, 2000)
}
</script>