init project and finish login page

This commit is contained in:
2025-03-10 19:48:25 +08:00
commit 8b8eeb8207
25 changed files with 926 additions and 0 deletions

16
src/router/index.ts Normal file
View File

@@ -0,0 +1,16 @@
import { createMemoryHistory, createRouter } from 'vue-router'
import LoginView from "@/views/LoginView.vue"
import User from '@/views/UserView.vue'
const routes = [
{ path: "/", redirect: "/login" },
{ path: "/login", name: "Login", component: LoginView },
{ path: "/user", name: "User", component: User },
]
const router = createRouter({
history: createMemoryHistory(),
routes,
})
export default router