forked from FoundKeyGang/FoundKey
fix router for new page editor path
This commit is contained in:
parent
c0b0720ede
commit
c781210ea1
1 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ const page = (loader: AsyncComponentLoader<any>) => defineAsyncComponent({
|
|||
|
||||
export const routes = [{
|
||||
path: '/@:initUser/pages/:initPageName/view-source',
|
||||
component: page(() => import('./pages/page-editor/page-editor.vue')),
|
||||
component: page(() => import('./pages/page-editor.vue')),
|
||||
}, {
|
||||
path: '/@:username/pages/:pageName',
|
||||
component: page(() => import('./pages/page.vue')),
|
||||
|
@ -121,11 +121,11 @@ export const routes = [{
|
|||
component: page(() => import('./pages/tag.vue')),
|
||||
}, {
|
||||
path: '/pages/new',
|
||||
component: page(() => import('./pages/page-editor/page-editor.vue')),
|
||||
component: page(() => import('./pages/page-editor.vue')),
|
||||
loginRequired: true,
|
||||
}, {
|
||||
path: '/pages/edit/:initPageId',
|
||||
component: page(() => import('./pages/page-editor/page-editor.vue')),
|
||||
component: page(() => import('./pages/page-editor.vue')),
|
||||
loginRequired: true,
|
||||
}, {
|
||||
path: '/pages',
|
||||
|
|
Loading…
Reference in a new issue