This commit is contained in:
marsal wang
2023-08-15 14:22:23 +08:00
parent b1a6522eb8
commit ad809b38e6

View File

@ -107,9 +107,10 @@ const routes = [
const router = new VueRouter({ const router = new VueRouter({
mode: 'history', mode: 'history',
// base: process.env.BASE_URL, base: process.env.BASE_URL,
routes routes
}) })
router.beforeEach(function (to, form, next) { router.beforeEach(function (to, form, next) {
if (to.meta.title) { if (to.meta.title) {
document.title = to.meta.title document.title = to.meta.title