diff --git a/src/scripts/router.ts b/src/scripts/router.ts index 57ea080..d53c9f1 100644 --- a/src/scripts/router.ts +++ b/src/scripts/router.ts @@ -39,7 +39,8 @@ const routes: Array = [ path: '/blog', name: 'Blog', meta: {title: '记事本'}, - component: () => import('../views/Blog.vue') + component: () => import('../views/Blog.vue'), + props: route => ({ query: route.query.q }) }, { path: '/color',