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 this.viewShown = true
}, },
handleViewChange() { handleViewChange() {
setTimeout(() => { // setTimeout(() => {
this.setLeastMenuOpen() // this.setLeastMenuOpen()
}, 500) // }, 500)
}, },
setLeastMenuOpen() { setLeastMenuOpen() {
const hasOpened = document.querySelector('.el-submenu-sidebar.submenu-item.el-submenu.is-opened') const hasOpened = document.querySelector('.el-submenu-sidebar.submenu-item.el-submenu.is-opened')

View File

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

View File

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

View File

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