Merge pull request #4172 from jumpserver/pr@dev@fix_auth_refresh

fixed: Fixed the issue that the button text would not refresh when the personal information page unbind authentication. TAPD: 1043567
This commit is contained in:
ZhaoJiSen 2024-07-03 10:25:18 +08:00 committed by GitHub
commit 017884e7cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View File

@ -95,7 +95,3 @@ export default {
}
}
</script>
<style scoped>
</style>

View File

@ -450,9 +450,11 @@ export default {
if (!this.object[`${this.currentEdit}_id`]) {
window.open(url, 'Bind', 'width=800,height=600')
} else {
this.$axios.post(url).then(res => {
this.$axios.post(url).then(() => {
this.$message.success(this.$tc('UpdateSuccessMsg'))
this.$store.dispatch('users/getProfile')
// 使 key $forceUpdate 使 button
window.location.reload()
})
}
})