add platform

This commit is contained in:
AceDataCloud committed 2021-08-28 16:55:44 +08:00
1 parent fc378d4903
commit f805eaaa1e
8 files changed
+99 -24

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
import i18n, { t } from '../i18n';
export default {
path: '/content',
name: 'content',
meta: {
title: t('common.nav.content')
},
component: () => import('@/layouts/Content.vue'),
children: [
{
path: 'editor',
name: 'editor',
meta: {
title: t('common.nav.editor')
},
component: () => import('@/pages/content/Editor.vue')
},
{
path: 'article',
name: 'article',
meta: {
title: t('common.nav.article')
},
component: () => import('@/pages/content/Article.vue')
},
{
path: 'platform',
name: 'platform',
meta: {
title: t('common.nav.platform')
},
component: () => import('@/pages/content/platform/Index.vue')
}
]
};
+2 -21
View File
@@ -1,7 +1,5 @@
import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';
import i18n from '../i18n';
const t = i18n.global.t;
import content from './content';
const routes = [
{
@@ -9,24 +7,7 @@ const routes = [
name: 'home',
component: () => import('@/pages/Home.vue')
},
{
path: '/content',
name: 'content',
meta: {
title: t('common.nav.content')
},
component: () => import('@/layouts/Content.vue'),
children: [
{
path: 'editor',
name: 'editor',
meta: {
title: t('common.nav.editor')
},
component: () => import('@/pages/content/Editor.vue')
}
]
}
content
];
const router = createRouter({