finish auth
This commit is contained in:
1 parent
f7d93c3abf
commit
903e7040f0
163 files changed
+34
-16975
No files matched your search
@@ -1,59 +0,0 @@
|
||||
import { t } from '../i18n';
|
||||
|
||||
export default {
|
||||
path: '/content',
|
||||
name: 'content',
|
||||
meta: {
|
||||
title: t('common.nav.content'),
|
||||
auth: true
|
||||
},
|
||||
component: () => import('@/layouts/Content.vue'),
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
redirect: {
|
||||
name: 'article-index'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'article',
|
||||
name: 'article-index',
|
||||
meta: {
|
||||
title: t('common.nav.article')
|
||||
},
|
||||
component: () => import('@/pages/content/article/Index.vue')
|
||||
},
|
||||
{
|
||||
path: 'article/:id',
|
||||
name: 'article-detail',
|
||||
meta: {
|
||||
title: t('common.nav.article')
|
||||
},
|
||||
component: () => import('@/pages/content/article/Detail.vue')
|
||||
},
|
||||
{
|
||||
path: 'article/:id/publish',
|
||||
name: 'article-publish',
|
||||
meta: {
|
||||
title: t('common.nav.article')
|
||||
},
|
||||
component: () => import('@/pages/content/article/Publish.vue')
|
||||
},
|
||||
{
|
||||
path: 'platform',
|
||||
name: 'platform-index',
|
||||
meta: {
|
||||
title: t('common.nav.platform')
|
||||
},
|
||||
component: () => import('@/pages/content/platform/Index.vue')
|
||||
},
|
||||
{
|
||||
path: 'publication',
|
||||
name: 'publication-index',
|
||||
meta: {
|
||||
title: t('common.nav.publication')
|
||||
},
|
||||
component: () => import('@/pages/content/publication/Index.vue')
|
||||
}
|
||||
]
|
||||
};
|
||||
+1
-5
@@ -1,5 +1,4 @@
|
||||
import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';
|
||||
import content from './content';
|
||||
import auth from './auth';
|
||||
import store from '@/store';
|
||||
|
||||
@@ -7,11 +6,8 @@ const routes = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
redirect: {
|
||||
name: 'article-index'
|
||||
}
|
||||
redirect: '/auth/login'
|
||||
},
|
||||
content,
|
||||
auth
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user