refactor(projects): 单独路由逻辑重构、路由转换函数优化

This commit is contained in:
Soybean
2022-01-06 02:00:42 +08:00
parent c804b21ceb
commit b36a62b150
45 changed files with 4976 additions and 330 deletions

View File

@@ -1,6 +1,6 @@
import type { App } from 'vue';
import { createRouter, createWebHistory } from 'vue-router';
import { routes, constantRoutes } from './routes';
import { routes } from './routes';
import { createRouterGuide } from './guard';
export const router = createRouter({
@@ -15,4 +15,4 @@ export async function setupRouter(app: App) {
await router.isReady();
}
export { constantRoutes };
export * from './routes';