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
fa34300401
commit
ec28ccf09c
@ -6,7 +6,7 @@
|
|||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<h1>抱歉,服务器出错了</h1>
|
<h1>抱歉,服务器出错了</h1>
|
||||||
</div>
|
</div>
|
||||||
<n-button type="primary" secondary @click="goHome">回到首页</n-button>
|
<n-button type="primary" secondary @click="goLogin">重新登录</n-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -14,8 +14,8 @@
|
|||||||
import { PageEnum } from '@/enums/pageEnum'
|
import { PageEnum } from '@/enums/pageEnum'
|
||||||
import { routerTurnByName } from '@/utils'
|
import { routerTurnByName } from '@/utils'
|
||||||
|
|
||||||
function goHome() {
|
function goLogin() {
|
||||||
routerTurnByName(PageEnum.BASE_HOME_NAME)
|
routerTurnByName(PageEnum.BASE_LOGIN_NAME)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user