mirror of
https://github.com/Art051/it-tools.git
synced 2025-08-11 19:29:03 +00:00
chore: components base
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { layouts } from './layouts/index';
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
import HomePage from './pages/Home.page.vue';
|
||||
import { tools } from './tools';
|
||||
@@ -10,7 +11,7 @@ const router = createRouter({
|
||||
name: 'home',
|
||||
component: HomePage,
|
||||
},
|
||||
...Object.values(tools).flat(),
|
||||
...tools.map(({ path, name, component, ...config }) => ({ path, name, component, meta: { isTool: true, layout: layouts.toolLayout, name, ...config } })),
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user