finish sidebar router push
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user