Spaces:
Sleeping
Sleeping
File size: 364 Bytes
f0953a4 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import { createRouter, createWebHistory } from "vue-router";
import mobileRoutes from "./mobile-routes";
import pcRoutes from "./pc-routes";
import { isMobileDevice } from "@/utils/index";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [...(isMobileDevice() ? mobileRoutes : pcRoutes)],
});
export default router;
|