mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-31 06:34:13 +00:00
perf: 统一样式
This commit is contained in:
@@ -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')
|
||||||
|
@@ -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;
|
||||||
|
@@ -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: {
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user