四、Vue学習ノート——ルーティング・フックを使ってWebページの名前を動的に変更する
//
{
path: "index",
component: () => import("../views/home/index/index.vue"),
meta: {
title: "- " },
},
router.beforeEach((to, from, next) => {
document.title = "XX " + to.meta.title;
next();
});