mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-19 09:39:04 +00:00
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:
commit
017884e7cc
@ -95,7 +95,3 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
@ -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()
|
||||
})
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user