mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-26 06:40:17 +08:00
style(projects): format code
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import type { App } from 'vue';
|
||||
import {
|
||||
createRouter,
|
||||
createWebHistory,
|
||||
createWebHashHistory,
|
||||
type RouterHistory,
|
||||
createMemoryHistory,
|
||||
type RouterHistory
|
||||
createRouter,
|
||||
createWebHashHistory,
|
||||
createWebHistory
|
||||
} from 'vue-router';
|
||||
import { createRoutes } from './routes';
|
||||
import { createRouterGuard } from './guard';
|
||||
@@ -24,9 +24,7 @@ export const router = createRouter({
|
||||
routes: constantVueRoutes
|
||||
});
|
||||
|
||||
/**
|
||||
* setup Vue Router
|
||||
*/
|
||||
/** Setup Vue Router */
|
||||
export async function setupRouter(app: App) {
|
||||
app.use(router);
|
||||
createRouterGuard(router);
|
||||
|
||||
Reference in New Issue
Block a user