mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-12-28 12:10:20 +08:00
first commit
This commit is contained in:
18
src/views/test-page/TestMessage.vue
Normal file
18
src/views/test-page/TestMessage.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<script setup>
|
||||
import { NButton } from 'naive-ui'
|
||||
|
||||
function handleLogin() {
|
||||
$message.loading('登陆中...')
|
||||
setTimeout(() => {
|
||||
$message.error('登陆失败')
|
||||
$message.loading('正在尝试重新登陆...')
|
||||
setTimeout(() => {
|
||||
$message.success('登陆成功')
|
||||
}, 2000)
|
||||
}, 2000)
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<n-button @click="handleLogin">点击登陆</n-button>
|
||||
</template>
|
||||
Reference in New Issue
Block a user