mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-29 14:09:31 +08:00
✨ 支持 template 模板 list 模式
This commit is contained in:
23
tpl/src/router/index.ts
Normal file
23
tpl/src/router/index.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
|
||||
import List from "../views/List.vue";
|
||||
import Doc from "../views/Doc.vue";
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: "/list",
|
||||
name: "list",
|
||||
component: List,
|
||||
},
|
||||
{
|
||||
path: "/doc",
|
||||
name: "doc",
|
||||
component: Doc,
|
||||
},
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes,
|
||||
});
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user