vueheader
v1.0.0
Published
vue通过路由修改标题,关键字,描述
Downloads
3
Readme
App.Vue
router
export default new Router({ mode: 'history', routes: [ { path: '*', component: NotFoundComponent }, { path: '/', meta: { title: 'home', keyword: 'keyword', description: 'desc' }, name: 'Index', component: Index }, { path: '/admin', name: 'Login', meta: { title: 'login' }, component: Login }, { path: '/admin/main', name: 'Main', meta: { title: 'admin', keyword: 'text' }, component: Main } ] })