diff --git a/blossom-web/src/router/route-init.ts b/blossom-web/src/router/route-init.ts index e3387c6..6d88746 100644 --- a/blossom-web/src/router/route-init.ts +++ b/blossom-web/src/router/route-init.ts @@ -13,6 +13,7 @@ const Login = () => import('@/views/index/Login.vue') const Articles = () => import('@/views/article/Articles.vue') const TodoIndex = () => import('@/views/todo/TodoIndex.vue') const PlanIndex = () => import('@/views/plan/PlanIndex.vue') +const NoteIndex = () => import('@/views/note/NoteIndex.vue') router.addRoute({ path: '/404', component: NotFound }) router.addRoute({ path: '/:pathMatch(.*)', redirect: '/404' }) @@ -25,8 +26,9 @@ router.addRoute({ children: [ { path: '/home', name: 'Home', component: Home, meta: { keepAlive: true } }, { path: '/login', name: 'Login', component: Login, meta: { keepAlive: true } }, - { path: '/articles', name: 'Articles', component: Articles, meta: { keepAlive: false } }, - { path: '/todo', name: 'TodoIndex', component: TodoIndex, meta: { keepAlive: false } }, - { path: '/plan', name: 'PlanIndex', component: PlanIndex, meta: { keepAlive: false } } + { path: '/articles', name: 'Articles', component: Articles, meta: { keepAlive: true } }, + { path: '/todo', name: 'TodoIndex', component: TodoIndex, meta: { keepAlive: true } }, + { path: '/plan', name: 'PlanIndex', component: PlanIndex, meta: { keepAlive: false } }, + { path: '/note', name: 'NoteIndex', component: NoteIndex, meta: { keepAlive: false } } ] })