add auth layout
This commit is contained in:
1 parent
ac450b0e04
commit
1ac9441a4d
10 files changed
+100
-15
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { t } from '../i18n';
|
||||
|
||||
export default {
|
||||
path: '/auth',
|
||||
name: 'auth',
|
||||
meta: {
|
||||
title: t('common.nav.content')
|
||||
},
|
||||
component: () => import('@/layouts/Auth.vue'),
|
||||
children: [
|
||||
{
|
||||
path: 'login',
|
||||
name: 'auth-login',
|
||||
meta: {
|
||||
title: t('common.nav.article')
|
||||
},
|
||||
component: () => import('@/pages/auth/Login.vue')
|
||||
}
|
||||
]
|
||||
};
|
||||
+3
-1
@@ -1,5 +1,6 @@
|
||||
import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';
|
||||
import content from './content';
|
||||
import auth from './auth';
|
||||
|
||||
const routes = [
|
||||
{
|
||||
@@ -9,7 +10,8 @@ const routes = [
|
||||
name: 'article-index'
|
||||
}
|
||||
},
|
||||
content
|
||||
content,
|
||||
auth
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
|
||||
Reference in new issue
Block a user