fix router for new page editor path

This commit is contained in:
Johann150 2022-08-03 23:04:16 +02:00
parent c0b0720ede
commit c781210ea1
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -12,7 +12,7 @@ const page = (loader: AsyncComponentLoader<any>) => defineAsyncComponent({
export const routes = [{ export const routes = [{
path: '/@:initUser/pages/:initPageName/view-source', 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', path: '/@:username/pages/:pageName',
component: page(() => import('./pages/page.vue')), component: page(() => import('./pages/page.vue')),
@ -121,11 +121,11 @@ export const routes = [{
component: page(() => import('./pages/tag.vue')), component: page(() => import('./pages/tag.vue')),
}, { }, {
path: '/pages/new', path: '/pages/new',
component: page(() => import('./pages/page-editor/page-editor.vue')), component: page(() => import('./pages/page-editor.vue')),
loginRequired: true, loginRequired: true,
}, { }, {
path: '/pages/edit/:initPageId', path: '/pages/edit/:initPageId',
component: page(() => import('./pages/page-editor/page-editor.vue')), component: page(() => import('./pages/page-editor.vue')),
loginRequired: true, loginRequired: true,
}, { }, {
path: '/pages', path: '/pages',