perf: 优化用户创建

This commit is contained in:
ibuler
2023-02-01 14:30:21 +08:00
parent 88c4d9e56f
commit b3d41b5fc2
2 changed files with 11 additions and 6 deletions

View File

@@ -53,16 +53,20 @@ export default {
.switch {
background: #EFF0F1;
border-radius: 4px;
padding: 0 4px;
&>>> .el-radio-button {
padding: 1px 4px;
& > > > .el-radio-button {
.el-radio-button__inner {
border: none;
color: #8F959E;
background: #EFF0F1;
}
&.is-active {
border-radius: 4px;
padding: 4px 0;
box-shadow: 2px 1px 2px rgba(0 0 0 / 8%);
.el-radio-button__inner {
color: var(--color-primary);
background-color: #FFF;
@@ -70,7 +74,8 @@ export default {
}
}
}
&>>> .el-radio-button__orig-radio:checked+.el-radio-button__inner {
& > > > .el-radio-button__orig-radio:checked + .el-radio-button__inner {
box-shadow: none;
}
}

View File

@@ -58,7 +58,7 @@ export default {
if (formValue.password_strategy === 'custom') {
return false
}
return !formValue.update_password
return !formValue.update_password || formValue.source !== 'local'
},
el: {
required: false,
@@ -74,8 +74,8 @@ export default {
},
options: [
{
label: true,
value: this.$t('users.needUpdatePasswordNextLogin')
label: '',
value: true
}
],
hidden: (formValue) => {