Merge pull request #4050 from jumpserver/pr@v4@fix_account_privileged

fixed: The account list detail page does not refresh after opening and closing the privilege list field
This commit is contained in:
ZhaoJiSen
2024-06-17 14:58:46 +08:00
committed by GitHub
6 changed files with 10 additions and 20 deletions

View File

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

View File

@@ -465,6 +465,12 @@ export default {
)
}
},
activated() {
// 由于组件嵌套较深,有可能导致 Error in activated hook: "TypeError: Cannot read properties of undefined (reading 'getList')" 的问题
setTimeout(() => {
this.refresh()
})
},
methods: {
onUpdateAuthDone(account) {
Object.assign(this.account, account)
@@ -499,6 +505,10 @@ export default {
setTimeout(() => {
this.showAddDialog = false
}, 800)
setTimeout(() => {
this.refresh()
}, 1000)
}
}
}

View File

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

View File

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

View File

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

View File

@@ -32,7 +32,3 @@ export default {
}
}
</script>
<style lang='scss' scoped>
</style>