style(projects): 路由相关文件夹简化

This commit is contained in:
Soybean
2022-01-06 11:37:06 +08:00
parent 85b55bb37a
commit e5793e1c8d
3 changed files with 69 additions and 78 deletions

View File

@@ -1,11 +1,12 @@
import type { App } from 'vue';
import { createRouter, createWebHistory } from 'vue-router';
import { routes } from './routes';
import { transformAuthRoutesToVueRoutes } from '@/utils';
import { constantRoutes } from './routes';
import { createRouterGuide } from './guard';
export const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes,
routes: transformAuthRoutesToVueRoutes(constantRoutes),
scrollBehavior: () => ({ left: 0, top: 0 })
});