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) => {