From b79b3d24493d4f7fa7c240f92d64216c99ee1b69 Mon Sep 17 00:00:00 2001 From: Amadeus Date: Fri, 17 May 2024 22:36:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E7=95=8C=E9=9D=A2=E7=BC=96?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- my-project-frontend/src/router/index.js | 7 +- my-project-frontend/src/views/WelcomeView.vue | 7 +- .../src/views/welcome/LoginPage.vue | 6 +- .../src/views/welcome/RegisterPage.vue | 84 +++++++++++++++++++ 4 files changed, 96 insertions(+), 8 deletions(-) create mode 100644 my-project-frontend/src/views/welcome/RegisterPage.vue diff --git a/my-project-frontend/src/router/index.js b/my-project-frontend/src/router/index.js index 649541b..50d5ce1 100644 --- a/my-project-frontend/src/router/index.js +++ b/my-project-frontend/src/router/index.js @@ -14,12 +14,13 @@ const router = createRouter( { path: '', name: 'welcome-login', component: () => import('@/views/welcome/LoginPage.vue') + },{ + path: 'register', + name: 'welcome-register', + component: () => import('@/views/welcome/RegisterPage.vue') } ] }, { - /* - 添加路由 - */ path: '/index', name: 'index', component: () => import('@/views/IndexView.vue') diff --git a/my-project-frontend/src/views/WelcomeView.vue b/my-project-frontend/src/views/WelcomeView.vue index 94ab95c..2cb1335 100644 --- a/my-project-frontend/src/views/WelcomeView.vue +++ b/my-project-frontend/src/views/WelcomeView.vue @@ -14,7 +14,12 @@
在这里你可以同性交友,因为都是男的,没有学java的女生
- + + + + + +
diff --git a/my-project-frontend/src/views/welcome/LoginPage.vue b/my-project-frontend/src/views/welcome/LoginPage.vue index 379beff..c74e3df 100644 --- a/my-project-frontend/src/views/welcome/LoginPage.vue +++ b/my-project-frontend/src/views/welcome/LoginPage.vue @@ -2,9 +2,7 @@ import { User , Lock} from '@element-plus/icons-vue' import {reactive, ref} from "vue"; import {login} from "@/net"; -/* -导入路由 - */ + import router from "@/router"; const formRef = ref() @@ -80,7 +78,7 @@ function userLogin(){ 没有账户?
- 立即注册 + 立即注册
diff --git a/my-project-frontend/src/views/welcome/RegisterPage.vue b/my-project-frontend/src/views/welcome/RegisterPage.vue new file mode 100644 index 0000000..e905d57 --- /dev/null +++ b/my-project-frontend/src/views/welcome/RegisterPage.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file