mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-02 15:36:56 +00:00
perf: 统一样式
This commit is contained in:
parent
68563a198d
commit
6c0c1aa9d4
@ -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')
|
||||
|
@ -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;
|
||||
|
@ -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: {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user