mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-10 02:57:47 +00:00
[Update] 更新用户首次登录页面
This commit is contained in:
parent
2604d933dd
commit
a38f179acb
@ -59,6 +59,9 @@ export default {
|
|||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
placeholder: 'ssh-rsa AAAA...'
|
placeholder: 'ssh-rsa AAAA...'
|
||||||
},
|
},
|
||||||
|
hidden: (formValue) => {
|
||||||
|
return formValue.source !== 'local'
|
||||||
|
},
|
||||||
helpText: this.$t('users.HelpText.SSHKeyOfProfileSSHUpdatePage')
|
helpText: this.$t('users.HelpText.SSHKeyOfProfileSSHUpdatePage')
|
||||||
},
|
},
|
||||||
terms: {
|
terms: {
|
||||||
|
@ -27,7 +27,17 @@ export default {
|
|||||||
config: {
|
config: {
|
||||||
title: this.$t('users.Profile'),
|
title: this.$t('users.Profile'),
|
||||||
activeMenu: 'ProfileInfo',
|
activeMenu: 'ProfileInfo',
|
||||||
submenu: [
|
submenu: this.getSubmenu(),
|
||||||
|
hasRightSide: false,
|
||||||
|
actions: {
|
||||||
|
detailApiUrl: '/api/v1/users/profile/'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getSubmenu() {
|
||||||
|
let submenu = [
|
||||||
{
|
{
|
||||||
title: this.$t('common.BasicInfo'),
|
title: this.$t('common.BasicInfo'),
|
||||||
name: 'ProfileInfo'
|
name: 'ProfileInfo'
|
||||||
@ -35,7 +45,10 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('users.ProfileSetting'),
|
title: this.$t('users.ProfileSetting'),
|
||||||
name: 'ProfileUpdate'
|
name: 'ProfileUpdate'
|
||||||
},
|
}
|
||||||
|
]
|
||||||
|
if (this.$store.state.users.profile.source === 'local') {
|
||||||
|
submenu = submenu.concat([
|
||||||
{
|
{
|
||||||
title: this.$t('users.LoginPasswordSetting'),
|
title: this.$t('users.LoginPasswordSetting'),
|
||||||
name: 'PasswordUpdate'
|
name: 'PasswordUpdate'
|
||||||
@ -44,12 +57,9 @@ export default {
|
|||||||
title: this.$t('users.SSHKeySetting'),
|
title: this.$t('users.SSHKeySetting'),
|
||||||
name: 'SSHUpdate'
|
name: 'SSHUpdate'
|
||||||
}
|
}
|
||||||
],
|
])
|
||||||
hasRightSide: false,
|
|
||||||
actions: {
|
|
||||||
detailApiUrl: '/api/v1/users/profile/'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
return submenu
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user