fix: 用户来源不为Local的时候禁止更新密码

Closes https://github.com/jumpserver/trello/issues/44
This commit is contained in:
OrangeM21
2020-07-13 19:26:40 +08:00
committed by 老广
parent 786528f9b2
commit 4973c62618
2 changed files with 3 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ export default {
if (formValue.update_password) {
return true
}
return this.$route.meta.action !== 'update'
return this.$route.meta.action !== 'update' || formValue.source !== 'local'
}
},
password: {