perf: 统一样式

This commit is contained in:
ibuler 2024-05-10 14:03:06 +08:00
parent 68563a198d
commit 6c0c1aa9d4
4 changed files with 8 additions and 8 deletions

View File

@ -136,9 +136,9 @@ export default {
this.viewShown = true
},
handleViewChange() {
setTimeout(() => {
this.setLeastMenuOpen()
}, 500)
// setTimeout(() => {
// this.setLeastMenuOpen()
// }, 500)
},
setLeastMenuOpen() {
const hasOpened = document.querySelector('.el-submenu-sidebar.submenu-item.el-submenu.is-opened')

View File

@ -8,7 +8,7 @@
--color-text-primary: #292827;
--color-icon-primary: #605e5c;
--color-input-border: #BBBFC4;
--color-disabled-background: #dcdee2;
--color-disabled-background: #e9ecef;
--color-help-text: #8F959E;
--banner-bg: #148f76;
--submenu-bg: #ffffff;

View File

@ -194,7 +194,7 @@ export default {
attrs: {
disabled: true,
name: 'site_msg',
model: this.object?.receive_backends.indexOf('site_msg') !== -1
model: this.object?.receive_backends?.indexOf('site_msg') !== -1
},
callbacks: {
change: this.updateUserReceiveBackends
@ -205,7 +205,7 @@ export default {
type: 'switch',
attrs: {
name: 'email',
model: this.object?.receive_backends.indexOf('email') !== -1
model: this.object?.receive_backends?.indexOf('email') !== -1
},
callbacks: {
change: this.updateUserReceiveBackends
@ -216,7 +216,7 @@ export default {
type: 'switch',
attrs: {
name: 'wecom',
model: this.object?.receive_backends.indexOf('wecom') !== -1
model: this.object?.receive_backends?.indexOf('wecom') !== -1
},
has: this.$store.getters.publicSettings.AUTH_WECOM,
callbacks: {

View File

@ -93,7 +93,7 @@ export default {
if (formValue.source !== 'local') {
return true
}
if (formValue.password_strategy === 'custom' || formValue.update_password || this.user.can_public_key_auth) {
if (formValue.update_password) {
return false
}
return true