admin_add_router

This commit is contained in:
xiaomlove
2021-04-07 19:42:39 +08:00
parent e48461546f
commit be9b8634c4
7 changed files with 48 additions and 3 deletions
+23
View File
@@ -0,0 +1,23 @@
import { createWebHistory, createRouter } from "vue-router";
import Home from "../pages/index";
import AgentAllow from "../pages/agent-allow";
const routes = [
{
path: "/",
name: "Home",
component: Home,
},
{
path: "/agent-allow",
name: "Agent-allow",
component: AgentAllow,
},
];
const router = createRouter({
history: createWebHistory(),
routes,
});
export default router;