From 9c43d9fa780d773d334169d44bed72c465acd2b1 Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 20 Jul 2022 09:12:20 +0800 Subject: [PATCH] feat: add register --- yudao-ui-admin-vue3/src/locales/en.ts | 3 + yudao-ui-admin-vue3/src/locales/zh-CN.ts | 3 + yudao-ui-admin-vue3/src/views/Login/Login.vue | 9 +- .../src/views/Login/components/LoginForm.vue | 22 ++- .../views/Login/components/RegisterForm.vue | 141 ++++++++++++++++++ .../src/views/Login/components/index.ts | 3 +- 6 files changed, 168 insertions(+), 13 deletions(-) create mode 100644 yudao-ui-admin-vue3/src/views/Login/components/RegisterForm.vue diff --git a/yudao-ui-admin-vue3/src/locales/en.ts b/yudao-ui-admin-vue3/src/locales/en.ts index a8e24f835..9ec9121b8 100644 --- a/yudao-ui-admin-vue3/src/locales/en.ts +++ b/yudao-ui-admin-vue3/src/locales/en.ts @@ -108,7 +108,10 @@ export default { login: 'Sign in', relogin: 'Sign in again', otherLogin: 'Sign in with', + register: 'Register', + checkPassword: 'Confirm password', remember: 'Remember me', + hasUser: 'Existing account? Go to login', forgetPassword: 'Forget password?', tenantNamePlaceholder: 'Please Enter Tenant Name', usernamePlaceholder: 'Please Enter Username', diff --git a/yudao-ui-admin-vue3/src/locales/zh-CN.ts b/yudao-ui-admin-vue3/src/locales/zh-CN.ts index e27a3befe..06b503006 100644 --- a/yudao-ui-admin-vue3/src/locales/zh-CN.ts +++ b/yudao-ui-admin-vue3/src/locales/zh-CN.ts @@ -108,7 +108,10 @@ export default { login: '登录', relogin: '重新登录', otherLogin: '其他登录方式', + register: '注册', + checkPassword: '确认密码', remember: '记住我', + hasUser: '已有账号?去登录', forgetPassword: '忘记密码?', tenantNamePlaceholder: '请输入租户名称', usernamePlaceholder: '请输入用户名', diff --git a/yudao-ui-admin-vue3/src/views/Login/Login.vue b/yudao-ui-admin-vue3/src/views/Login/Login.vue index 119b5f638..f81180002 100644 --- a/yudao-ui-admin-vue3/src/views/Login/Login.vue +++ b/yudao-ui-admin-vue3/src/views/Login/Login.vue @@ -1,6 +1,5 @@