mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-23 05:40:20 +08:00
🐛 Fixing a bug. 修改基本信息维护编辑报错,修改第三方账号解绑失败时没有提示,增加登录回车调用事件
This commit is contained in:
parent
46c6d2d676
commit
7e4085ca58
@ -61,12 +61,7 @@
|
||||
</el-col>
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="新密码" prop="newpassword1">
|
||||
<strength-meter
|
||||
v-model="passwordFormData.newpassword1"
|
||||
:minlength="6"
|
||||
:maxlength="16"
|
||||
placeholder="请输入新密码"
|
||||
></strength-meter>
|
||||
<strength-meter v-model="passwordFormData.newpassword1" :minlength="6" :maxlength="16" placeholder="请输入新密码"></strength-meter>
|
||||
<!-- <el-input v-model="passwordFormData.newpassword1" clearable type="password"></el-input>-->
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -213,7 +208,7 @@ const handleSaveUser = () => {
|
||||
if (!valid) {
|
||||
return false;
|
||||
}
|
||||
editInfo(formData)
|
||||
editInfo(formData.value)
|
||||
.then(() => {
|
||||
useMessage().success('修改成功');
|
||||
// 更新上下文的 user信息
|
||||
@ -260,6 +255,9 @@ const initUserInfo = (userId: any) => {
|
||||
console.log(formData.value, 'formData');
|
||||
initSocialList();
|
||||
})
|
||||
.catch((err) => {
|
||||
useMessage().error(err.msg);
|
||||
})
|
||||
.finally(() => {
|
||||
loading.value = false;
|
||||
});
|
||||
@ -296,6 +294,9 @@ const Unbinding = (type) => {
|
||||
.then((res) => {
|
||||
useMessage().success('解绑成功');
|
||||
})
|
||||
.catch((err) => {
|
||||
useMessage().error(err.msg);
|
||||
})
|
||||
.finally(() => {
|
||||
initUserInfo(formData.value.userId);
|
||||
});
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-form size="large" class="login-content-form" ref="loginFormRef" :rules="loginRules" :model="loginForm">
|
||||
<el-form size="large" class="login-content-form" ref="loginFormRef" :rules="loginRules" :model="loginForm" @keyup.enter="handleLogin">
|
||||
<el-form-item class="login-animation1" prop="mobile">
|
||||
<el-input text :placeholder="$t('mobile.placeholder1')" v-model="loginForm.mobile" clearable autocomplete="off">
|
||||
<template #prefix>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-form size="large" class="login-content-form" ref="loginFormRef" :rules="loginRules" :model="state.ruleForm">
|
||||
<el-form size="large" class="login-content-form" ref="loginFormRef" :rules="loginRules" :model="state.ruleForm" @keyup.enter="handleVerify">
|
||||
<el-form-item class="login-animation1">
|
||||
<el-input text :placeholder="$t('password.accountPlaceholder1')" v-model="state.ruleForm.username" clearable autocomplete="off">
|
||||
<template #prefix>
|
||||
|
Loading…
Reference in New Issue
Block a user