fix: 将 401 页面重命名为 403

This commit is contained in:
pany 2022-08-15 16:42:25 +08:00
parent 9dcb60afad
commit 307df0b0b8
4 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@
- **权限管理**:内置页面权限(动态路由)、指令权限、权限函数、路由守卫 - **权限管理**:内置页面权限(动态路由)、指令权限、权限函数、路由守卫
- **多环境**开发环境development、预发布环境staging、正式环境production - **多环境**开发环境development、预发布环境staging、正式环境production
- **多主题**:内置普通、黑暗两种主题模式 - **多主题**:内置普通、黑暗两种主题模式
- **错误页面**: 401、404 - **错误页面**: 403、404
- **Dashboard**:根据不同用户显示不同的 Dashboard 页面 - **Dashboard**:根据不同用户显示不同的 Dashboard 页面
- **其他内置功能**SVG、动态侧边栏、动态面包屑、标签页快捷导航、Screenfull 全屏、自适应收缩侧边栏(兼容移动端) - **其他内置功能**SVG、动态侧边栏、动态面包屑、标签页快捷导航、Screenfull 全屏、自适应收缩侧边栏(兼容移动端)

View File

@ -182,11 +182,11 @@ export const asyncRoutes: Array<RouteRecordRaw> = [
}, },
children: [ children: [
{ {
path: "401", path: "403",
component: () => import("@/views/error-page/401.vue"), component: () => import("@/views/error-page/403.vue"),
name: "401", name: "403",
meta: { meta: {
title: "401" title: "403"
} }
}, },
{ {

View File

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<p style="text-align: center; font-size: 140px; margin-bottom: 50px">401</p> <p style="text-align: center; font-size: 140px; margin-bottom: 50px">403</p>
<p style="text-align: center; font-size: 40px">你没有权限去该页面</p> <p style="text-align: center; font-size: 40px">你没有权限去该页面</p>
</div> </div>
</template> </template>

View File

@ -5,7 +5,7 @@ import SwitchRoles from "./components/SwitchRoles.vue"
const router = useRouter() const router = useRouter()
const handleRolesChange = () => { const handleRolesChange = () => {
router.push({ path: "/401" }).catch((err) => { router.push({ path: "/403" }).catch((err) => {
console.warn(err) console.warn(err)
}) })
} }