build(projects): 依赖升级

This commit is contained in:
Soybean
2021-08-17 14:59:59 +08:00
parent 025a9beae1
commit 09a28d8e1d
11 changed files with 203 additions and 79 deletions

View File

@ -0,0 +1,18 @@
import { createRouter, createWebHistory } from 'vue-router';
import type { App } from 'vue';
import type { RouteRecordRaw } from 'vue-router';
import { customRoutes } from './routes';
import createRouterGuide from './permission';
const routes: Array<RouteRecordRaw> = [...customRoutes];
const router = createRouter({
history: createWebHistory(),
routes
});
createRouterGuide(router);
export function setupRouter(app: App) {
app.use(router);
}