wwf
13 小时以前 4f218aac60322f6b0cd90447f8c13f6fb6ff88e8
src/router/index.js
@@ -2,10 +2,11 @@
import authPage from '@/router/auth/index.js'
import errorPage from '@/router/error/index.js'
import mainPage from '@/router/main/index.js'
import h5 from '@/router/h5/router.js'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [...mainPage, ...authPage, ...errorPage],
  routes: [...mainPage, ...authPage, ...errorPage, ...h5],
})
router.beforeEach((to, from, next) => {