feat(All):Initial

This commit is contained in:
2025-10-04 23:36:07 +08:00
commit 2b4e5d2668
1321 changed files with 415958 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import type { App } from 'vue';
import {createRouter, createWebHashHistory} from 'vue-router';
import {routes} from "@/router/routes";
export const router = createRouter({
history: createWebHashHistory(),
routes,
// 是否应该禁止尾部斜杠。默认为假
strict: true,
scrollBehavior: () => ({left: 0, top: 0}),
});
export function setupRouter(app: App<Element>) {
app.use(router);
}
+17
View File
@@ -0,0 +1,17 @@
export const routes = [
{
path: '/',
name: 'Home',
component: () => import('@/views/home/index.vue')
},
{
path: '/editor/:id',
name: 'Editor',
component: () => import('@/views/editor/index.vue')
},
{
path: '/preview/:id',
name: 'Preview',
component: () => import('@/views/preview/index.vue')
}
];