提交 51eff514 authored 作者: 王鹏飞's avatar 王鹏飞

fix: 修复createWebHistory的BASE_URL引用

上级 44c23921
import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [{ path: '/:pathMatch(.*)', redirect: '/auth' }]
history: createWebHistory(),
routes: [{ path: '/:pathMatch(.*)', redirect: '/auth' }],
})
router.beforeEach((to, from, next) => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论