finish sidebar router push

This commit is contained in:
2025-04-05 20:49:50 +08:00
parent 20d4fa12d8
commit 292c73e757
8 changed files with 102 additions and 69 deletions

View File

@@ -1,18 +1,20 @@
import { createMemoryHistory, createRouter } from 'vue-router'
import LoginView from "@/views/LoginView.vue"
import UserView from '@/views/UserView.vue'
import TestView from '@/views/TestView.vue'
import { createMemoryHistory, createRouter } from "vue-router";
import LoginView from "../views/LoginView.vue";
import UserView from "../views/UserView.vue";
import TestView from "../views/TestView.vue";
import JtagTest from "../views/JtagTest.vue";
const routes = [
{ path: "/", redirect: "/user" },
{ path: "/login", name: "Login", component: LoginView },
{ path: "/user", name: "User", component: UserView },
{ path: "/test", name: "Test", component: TestView },
]
{ path: "/test/jtag", name:"JtagTest", component: JtagTest}
];
const router = createRouter({
history: createMemoryHistory(),
routes,
})
});
export default router
export default router;