From 6c0fe54330b4183ae9a274e6410f2781163721a1 Mon Sep 17 00:00:00 2001 From: Twilight Date: Mon, 18 Mar 2024 19:35:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/router/index.ts | 5 ++ src/views/auth/Login.vue | 26 ++++++- yarn.lock | 156 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 185 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3ecfacd..a972a03 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ }, "dependencies": { "keycloak-js": "^24.0.1", + "naive-ui": "^2.38.1", "pinia": "^2.1.7", "vue": "^3.4.21", "vue-router": "^4.3.0" diff --git a/src/router/index.ts b/src/router/index.ts index a49ae50..5e2a8a1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -16,6 +16,11 @@ const router = createRouter({ // this generates a separate chunk (About.[hash].js) for this route // which is lazy-loaded when the route is visited. component: () => import('../views/AboutView.vue') + }, + { + path: '/auth/login', + name: 'auth.login', + component: () => import('../views/auth/Login.vue') } ] }) diff --git a/src/views/auth/Login.vue b/src/views/auth/Login.vue index 6ba192f..fd556ba 100644 --- a/src/views/auth/Login.vue +++ b/src/views/auth/Login.vue @@ -1,16 +1,36 @@