add switch component

This commit is contained in:
2025-03-16 21:49:01 +08:00
parent 8f18560a38
commit d7ca474e39
6 changed files with 114 additions and 7 deletions

View File

@@ -1,11 +1,13 @@
import { createMemoryHistory, createRouter } from 'vue-router'
import LoginView from "@/views/LoginView.vue"
import User from '@/views/UserView.vue'
import UserView from '@/views/UserView.vue'
import TestSVG from '@/views/TestSVG.vue'
const routes = [
{ path: "/", redirect: "/user" },
{ path: "/login", name: "Login", component: LoginView },
{ path: "/user", name: "User", component: User },
{ path: "/user", name: "User", component: UserView },
{ path: "/test", name: "Test", component: TestSVG },
]
const router = createRouter({