From cc69786fd18c67f829acc75a2e5b58e3a9f02300 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期日, 02 七月 2023 16:48:57 +0800 Subject: [PATCH] update 优化 !pr382 修复一些问题 完事流程逻辑 --- src/views/login.vue | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index 3234864..0ac655c 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -4,8 +4,7 @@ <h3 class="title">RuoYi-Vue-Plus澶氱鎴风鐞嗙郴缁�</h3> <el-form-item prop="tenantId" v-if="tenantEnabled"> <el-select v-model="loginForm.tenantId" filterable placeholder="璇烽�夋嫨/杈撳叆鍏徃鍚嶇О" style="width: 100%"> - <el-option v-for="item in tenantList" :key="item.tenantId" :label="item.companyName" - :value="item.tenantId"></el-option> + <el-option v-for="item in tenantList" :key="item.tenantId" :label="item.companyName" :value="item.tenantId"></el-option> <template #prefix><svg-icon icon-class="company" class="el-input__icon input-icon" /></template> </el-select> </el-form-item> @@ -15,14 +14,12 @@ </el-input> </el-form-item> <el-form-item prop="password"> - <el-input v-model="loginForm.password" type="password" size="large" auto-complete="off" placeholder="瀵嗙爜" - @keyup.enter="handleLogin"> + <el-input v-model="loginForm.password" type="password" size="large" auto-complete="off" placeholder="瀵嗙爜" @keyup.enter="handleLogin"> <template #prefix><svg-icon icon-class="password" class="el-input__icon input-icon" /></template> </el-input> </el-form-item> <el-form-item prop="code" v-if="captchaEnabled"> - <el-input v-model="loginForm.code" size="large" auto-complete="off" placeholder="楠岃瘉鐮�" style="width: 63%" - @keyup.enter="handleLogin"> + <el-input v-model="loginForm.code" size="large" auto-complete="off" placeholder="楠岃瘉鐮�" style="width: 63%" @keyup.enter="handleLogin"> <template #prefix><svg-icon icon-class="validCode" class="el-input__icon input-icon" /></template> </el-input> <div class="login-code"> @@ -193,7 +190,8 @@ const doSocialLogin = (type: string) => { authBinding(type).then((res: any) => { if (res.code === 200) { - window.location.href = res.msg; + // 鑾峰彇鎺堟潈鍦板潃璺宠浆 + window.location.href = res.data; } else { ElMessage.error(res.msg); } -- Gitblit v1.9.3