mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-28 16:30:10 +08:00
17 lines
420 B
Vue
17 lines
420 B
Vue
<template>
|
|
<n-empty description="你什么也找不到">
|
|
<template #extra>
|
|
<n-button size="small" @click="goHome">看看别的</n-button>
|
|
</template>
|
|
</n-empty>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
import { onBeforeMount } from 'vue'
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
const route = useRoute()
|
|
const router = useRouter()
|
|
const goHome = () => {
|
|
router.replace({ path: '/' })
|
|
}
|
|
</script>
|