增加前端格式检查配置
This commit is contained in:
@@ -12,16 +12,10 @@ import { sellerRoutes } from './sellerRoutes'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
...adminRoutes,
|
||||
...mobileRoutes,
|
||||
...publicRoutes,
|
||||
...accountRoutes,
|
||||
...sellerRoutes,
|
||||
],
|
||||
routes: [...adminRoutes, ...mobileRoutes, ...publicRoutes, ...accountRoutes, ...sellerRoutes],
|
||||
})
|
||||
|
||||
router.beforeEach(async (to) => {
|
||||
router.beforeEach(async to => {
|
||||
const isMobile = isMobileHost() || isMobileDevice()
|
||||
|
||||
if (isMobile) {
|
||||
|
||||
Reference in New Issue
Block a user