-
Notifications
You must be signed in to change notification settings - Fork 235
refactor: permission-fe #893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SharerMax
wants to merge
16
commits into
Tencent:develop
Choose a base branch
from
SharerMax:bugfix/permission-fe
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
0c18661
fix: vue devtools OOM when role not `all`
SharerMax 1d3a05f
Merge branch 'develop' into bugfix/permission-fe
SharerMax 8e21ab2
fix: route path of `PAGE_NOT_FOUND_ROUTE` incorrect
SharerMax 5485159
fix: only init route in permission route guard
SharerMax 800a4bf
feat: add `permission-fe` use sample
SharerMax e6cacdc
Merge branch 'develop' into bugfix/permission-fe
SharerMax 82282ff
fix: can restore route when use `permission-fe` ;only use `roleCode` …
SharerMax 9ed5c93
feat: add `CHECK_ROLE_STRICT`
SharerMax 99e0483
feat: handle `whiteListRouters`
SharerMax f0b8a59
refactor: refine `filterPermissionsRouters`
SharerMax a497b92
chore: clean code
SharerMax cf9c31a
feat: refine 404 page define
SharerMax 9e40175
refactor: refine restore routes
SharerMax 998dcb0
chore: typo
SharerMax 7cfcc2a
feat: remove `removeRoutes` of `permission` store
SharerMax 6b5ff0d
fix: make roles type safety
SharerMax File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,14 +1,17 @@ | ||
| import type { RouteRecordRaw } from 'vue-router'; | ||
|
|
||
| export const LAYOUT = () => import('@/layouts/index.vue'); | ||
| export const BLANK_LAYOUT = () => import('@/layouts/blank.vue'); | ||
| export const IFRAME = () => import('@/layouts/components/FrameBlank.vue'); | ||
| export const EXCEPTION_COMPONENT = () => import('@/pages/result/500/index.vue'); | ||
| export const PAGE_NOT_FOUND_COMPONENT = () => import('@/pages/result/404/index.vue'); | ||
| export const PARENT_LAYOUT = () => | ||
| new Promise((resolve) => { | ||
| resolve({ name: 'ParentLayout' }); | ||
| }); | ||
|
|
||
| export const PAGE_NOT_FOUND_ROUTE = { | ||
| path: '/:w+', | ||
| export const PAGE_NOT_FOUND_ROUTE: RouteRecordRaw = { | ||
| path: '/:pathMatch(.*)*', | ||
| name: '404Page', | ||
| redirect: '/result/404', | ||
| component: PAGE_NOT_FOUND_COMPONENT, | ||
| }; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.