This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f794d03
commit c3fa5a2
Showing
8 changed files
with
112 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { default as Exception } from './exception/index.vue' | ||
export { default as Exception, ExceptionEnum } from './exception/index.vue' | ||
export { default as FrameBlank } from './iframe/FrameBlank.vue' | ||
export { default as Redirect } from './redirect/index.vue' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,87 @@ | ||
import { LAYOUT } from '../../basic' | ||
import { LAYOUT, getParentLayout } from '../../basic' | ||
import { Exception, ExceptionEnum } from '../../../page' | ||
|
||
const pages: RouteRecordItem = { | ||
path: '/pages', | ||
name: 'Pages', | ||
component: LAYOUT, | ||
redirect: '/pages/index', | ||
redirect: '/pages/exception/403', | ||
meta: { | ||
orderNo: 5, | ||
title: '页面', | ||
title: 'routes.demo.page.page', | ||
icon: 'iconoir:multiple-pages-empty', | ||
root: true | ||
root: true, | ||
}, | ||
children: [] | ||
children: [ | ||
// =============================exception start============================= | ||
{ | ||
path: 'exception', | ||
name: 'ExceptionPage', | ||
component: getParentLayout('ExceptionPage'), | ||
redirect: '/pages/exception/403', | ||
meta: { | ||
title: 'routes.demo.page.exception', | ||
}, | ||
children: [ | ||
{ | ||
path: '403', | ||
name: 'PageNotAccess403', | ||
component: Exception, | ||
props: { | ||
status: ExceptionEnum.PAGE_NOT_ACCESS, | ||
}, | ||
meta: { | ||
title: '403', | ||
}, | ||
}, | ||
{ | ||
path: '404', | ||
name: 'PageNotFound404', | ||
component: Exception, | ||
props: { | ||
status: ExceptionEnum.PAGE_NOT_FOUND, | ||
}, | ||
meta: { | ||
title: '404', | ||
}, | ||
}, | ||
{ | ||
path: '500', | ||
name: 'ServiceError500', | ||
component: Exception, | ||
props: { | ||
status: ExceptionEnum.ERROR, | ||
}, | ||
meta: { | ||
title: '500', | ||
}, | ||
}, | ||
{ | ||
path: 'net-work-error', | ||
name: 'NetWorkError', | ||
component: Exception, | ||
props: { | ||
status: ExceptionEnum.NET_WORK_ERROR, | ||
}, | ||
meta: { | ||
title: 'routes.demo.page.netWorkError', | ||
}, | ||
}, | ||
{ | ||
path: 'not-data', | ||
name: 'NotData', | ||
component: Exception, | ||
props: { | ||
status: ExceptionEnum.PAGE_NOT_DATA, | ||
}, | ||
meta: { | ||
title: 'routes.demo.page.notData', | ||
}, | ||
}, | ||
], | ||
}, | ||
// =============================exception end============================= | ||
], | ||
} | ||
|
||
export default pages; | ||
export default pages |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.