From a0b5604fcefa0c7900ecc50830b718f77bba8f39 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期五, 15 七月 2022 14:43:40 +0800 Subject: [PATCH] add cluster pwd --- src/views/login/components/loginForm.vue | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/views/login/components/loginForm.vue b/src/views/login/components/loginForm.vue index 627f100..b334c4b 100644 --- a/src/views/login/components/loginForm.vue +++ b/src/views/login/components/loginForm.vue @@ -12,22 +12,22 @@ > <el-form-item prop="loginName"> <el-input - v-model="user.loginName" + v-model.trim="user.loginName" placeholder="璇疯緭鍏ユ墜鏈哄彿 / 鐢ㄦ埛鍚�" > <i slot="prefix" class="iconfont"></i> </el-input> </el-form-item> <el-form-item prop="password" class="password-form-item"> - <el-input + <PwInput v-model="user.password" :showPreIcon="true"> </PwInput> + <!-- <el-input show-password @keyup.enter.native="userLogin" v-model="user.password" autocomplete="off" placeholder="璇疯緭鍏ュ瘑鐮�" > - <i slot="prefix" class="iconfont"></i> - </el-input> + </el-input> --> </el-form-item> <el-form-item> <el-button @@ -107,7 +107,7 @@ import { tologin, getLoginUserData, - getVerifyCode, + makeVerifyCode, getMenuPermission, } from "@/api/login"; import { isPhone } from "@/scripts/validate"; @@ -239,7 +239,7 @@ this.codeDisabled = true; this.getValidStr(); this.timer = setInterval(this.getValidStr, 1000); - getVerifyCode({ phoneNum: this.phone.phoneNum }) + makeVerifyCode({ phoneNum: this.phone.phoneNum, type: 0 }) .then(() => { this.gotCode = true; }) @@ -279,10 +279,9 @@ getMenuPermission().then((rep) => { data.userInfo.permissions = rep.data.permissions; sessionStorage.setItem("userInfo", JSON.stringify(data.userInfo)); + this.$router.push("/"); }); this.loading.close(); - - this.$router.push("/"); }) .catch((err) => { this.loading.close(); -- Gitblit v1.8.0