diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json index fb4b61675..e9d4547f0 100644 --- a/src/i18n/langs/cn.json +++ b/src/i18n/langs/cn.json @@ -813,7 +813,12 @@ "WebTerminal": "Web终端", "Notifications": "通知", "SiteMessageList": "站内信", - "UserLoginACL": "用户登录" + "UserLoginACL": "用户登录", + "NoPermission403": "403 暂无权限", + "NoPermissionVew": "没有权限查看当前页面", + "AjaxError404": "404 请求错误", + "CannotAccess": "无法访问当前页面", + "GoHomePage": "去往首页" }, "rbac": { "Permissions": "权限" diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 1b70dd966..80ba1ae31 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -787,7 +787,12 @@ "WebTerminal": "Web Terminal", "Notifications": "Notifications", "SiteMessageList": "Site message", - "UserLoginACL": "User Login ACL" + "UserLoginACL": "User Login ACL", + "NoPermission403": "403 No permission", + "NoPermissionVew": "No permission view current page", + "AjaxError404": "404 ajax error", + "CannotAccess": "Unable to access the current page", + "GoHomePage": "Go home page" }, "rbac": { "Permissions": "Permissions" diff --git a/src/views/403.vue b/src/views/403.vue new file mode 100644 index 000000000..1d43d8110 --- /dev/null +++ b/src/views/403.vue @@ -0,0 +1,64 @@ + + + + {{ $t('route.NoPermission403') }} + {{ $t('route.NoPermissionVew') }} + + + + + + + + + + diff --git a/src/views/404.vue b/src/views/404.vue index b43bb817f..1941020fe 100644 --- a/src/views/404.vue +++ b/src/views/404.vue @@ -1,9 +1,11 @@ - 404 请求错误 - 无法访问当前页面 - 去往首页 + {{ $t('route.AjaxError404') }} + {{ $t('route.CannotAccess') }} + + {{ $t('route.GoHomePage') }} + @@ -14,12 +16,7 @@ diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 26cab7dd4..f4d009835 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,9 +1,12 @@ - - - - + + + + + + + @@ -13,6 +16,7 @@ import { Page } from '@/layout/components' import ResourceSummary from './ResourceSummary' import DatesLoginSummary from './DatesLoginSummary' import TopAndLatestSummary from './TopAndLatestSummary' +import Page403 from '@/views/403' export default { name: 'Dashboard', @@ -21,7 +25,8 @@ export default { DatesLoginSummary, ResourceSummary, TopAndLatestSummary, - Announcement + Announcement, + Page403 }, data() { return { diff --git a/src/views/myhome/index.vue b/src/views/myhome/index.vue index 038c00644..5ef913e15 100644 --- a/src/views/myhome/index.vue +++ b/src/views/myhome/index.vue @@ -1,6 +1,6 @@ - + @@ -21,6 +21,7 @@ + @@ -31,6 +32,7 @@ import Announcement from './components/Announcement' import Ticket from './components/Ticket' import Log from './components/LoginLog' import Session from './components/Session' +import Page403 from '@/views/403' export default { name: 'Name', @@ -40,7 +42,8 @@ export default { Announcement, Ticket, Log, - Session + Session, + Page403 }, data() { return {
{{ $t('route.NoPermissionVew') }}
无法访问当前页面
{{ $t('route.CannotAccess') }}