Commit 30fd8c21 authored by nick zheng's avatar nick zheng

chore: 异常页面支持返回首页

parent ef19e52c
<script setup lang="ts">
function toHomePage() {}
import { useRouter } from 'vue-router'
const router = useRouter()
function toHomePage() {
router.replace({ name: 'Home' })
}
</script>
<template>
......
<script setup lang="ts">
function toHomePage() {}
import { useRouter } from 'vue-router'
const router = useRouter()
function toHomePage() {
router.replace({ name: 'Home' })
}
</script>
<template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment