Vue.js 无法在vuejs中显示网站的标题
我无法在用vuetify创建的网站上显示标题。我已经提到Vue.js 无法在vuejs中显示网站的标题,vue.js,vuetify.js,Vue.js,Vuetify.js,我无法在用vuetify创建的网站上显示标题。我已经提到 export default new Router({ mode: 'history', routes: [ { path: '/', component: () => import('./../src/views/dashboard/Dashboard.vue'), meta: { auth: t
export default new Router({
mode: 'history',
routes: [
{
path: '/',
component: () => import('./../src/views/dashboard/Dashboard.vue'),
meta: {
auth: true,
title: 'Dashboard'
}
},
在my router.js中,但仍然没有显示标题这似乎有助于:
他们建议使用某种类型的钩子
第二种解决方案是通过使用“观察者”来降低成本: