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({
mode: 'history',
// base: process.env.BASE_URL,
base: process.env.BASE_URL,
routes
})
router.beforeEach(function (to, form, next) {
if (to.meta.title) {
document.title = to.meta.title