mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
perf: 优化500错误页重定向
This commit is contained in:
parent
3f462c1bee
commit
255b14a597
@ -6,7 +6,7 @@
|
||||
<div class="text-center">
|
||||
<h1>抱歉,服务器出错了</h1>
|
||||
</div>
|
||||
<n-button type="primary" secondary @click="goHome">回到首页</n-button>
|
||||
<n-button type="primary" secondary @click="goLogin">重新登录</n-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -14,8 +14,8 @@
|
||||
import { PageEnum } from '@/enums/pageEnum'
|
||||
import { routerTurnByName } from '@/utils'
|
||||
|
||||
function goHome() {
|
||||
routerTurnByName(PageEnum.BASE_HOME_NAME)
|
||||
function goLogin() {
|
||||
routerTurnByName(PageEnum.BASE_LOGIN_NAME)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user