Skip to content

Commit dc660ad

Browse files
committed
修改路由首页、错误页提示信息
1 parent a57cd3d commit dc660ad

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

src/router/generator-routers.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { BasicLayout, BlankLayout, PageView, RouteView } from '@/layouts'
55
import { userMenuTree } from '@/api/system/user'
66
import notification from 'ant-design-vue/es/notification'
77
import * as _ from 'lodash'
8+
// eslint-disable-next-line no-unused-vars
89
import { bxAnaalyse } from '@/core/icons'
910

1011
// 前端路由表
@@ -70,21 +71,22 @@ const rootRouter = {
7071
name: 'Home',
7172
path: '/',
7273
component: BasicLayout,
73-
meta: { title: 'menu.home' },
74-
redirect: '/dashboard/workplace',
74+
meta: { title: '首页' },
75+
redirect: '/home',
7576
children: [
7677
{
77-
path: '/dashboard',
78-
name: 'dashboard',
79-
redirect: '/dashboard/workplace',
78+
path: '/home',
79+
name: 'Home',
80+
redirect: '/home/index',
8081
component: RouteView,
81-
meta: { title: 'menu.dashboard', keepAlive: true, icon: bxAnaalyse },
82+
hideChildrenInMenu: true,
83+
meta: { title: '首页', keepAlive: true, icon: 'home' },
8284
children: [
8385
{
84-
path: '/dashboard/workplace',
85-
name: 'Workplace',
86+
path: '/home/index',
87+
name: 'HomeIndex',
8688
component: () => import('@/views/dashboard/Workplace'),
87-
meta: { title: 'menu.dashboard.workplace', keepAlive: true, permission: [ 'dashboard' ] }
89+
meta: { title: '首页', hidden: true, keepAlive: true }
8890
}
8991
]
9092
}

src/views/exception/403.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
2-
<a-result status="403" title="403" sub-title="Sorry, you don't have access to this page.">
2+
<a-result status="403" title="403" sub-title="您无权访问此页面 o( ̄┰ ̄*)ゞ">
33
<template #extra>
44
<a-button type="primary" @click="toHome">
5-
Back Home
5+
返回首页
66
</a-button>
77
</template>
88
</a-result>

src/views/exception/404.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
2-
<a-result status="404" title="404" sub-title="Sorry, the page you visited does not exist.">
2+
<a-result status="404" title="404" sub-title="您访问的页面不见了 Σ(っ °Д °;)っ">
33
<template #extra>
44
<a-button type="primary" @click="toHome">
5-
Back Home
5+
返回首页
66
</a-button>
77
</template>
88
</a-result>

src/views/exception/500.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
2-
<a-result status="500" title="500" sub-title="Sorry, the server is reporting an error.">
2+
<a-result status="500" title="500" sub-title="对不起,服务器开小差了,请您稍后再试 (●ˇ∀ˇ●)">
33
<template #extra>
44
<a-button type="primary" @click="toHome">
5-
Back Home
5+
返回首页
66
</a-button>
77
</template>
88
</a-result>

0 commit comments

Comments
 (0)