Merge pull request #4079 from jumpserver/pr@v4@fix_role_sys

fixed: Fixed an issue where the delete prompt was incorrect when the user had only one organization role
This commit is contained in:
ZhaoJiSen 2024-06-20 15:49:58 +08:00 committed by GitHub
commit b8b488274f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 12 deletions

View File

@ -90,7 +90,10 @@ export default {
this.$message.success(this.$tc('DeleteSuccessMsg')) this.$message.success(this.$tc('DeleteSuccessMsg'))
reload() reload()
}).catch(error => { }).catch(error => {
this.$message.error(this.$tc('DeleteErrorMsg') + ' ' + error) this.$message.error({
message: error.response.data.error,
duration: 3000
})
}) })
}.bind(this) }.bind(this)
}, },
@ -140,6 +143,3 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped>
</style>

View File

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

View File

@ -126,7 +126,9 @@ export default {
return !row['builtin'] && this.$hasPerm(perm) return !row['builtin'] && this.$hasPerm(perm)
}, },
reloadTable() { reloadTable() {
setTimeout(() => {
this.$refs.ListTable.reloadTable() this.$refs.ListTable.reloadTable()
}, 300)
} }
} }
} }

View File

@ -13,9 +13,7 @@ export default {
BaseRoleList BaseRoleList
}, },
activated() { activated() {
setTimeout(() => {
this.$refs.roleList.reloadTable() this.$refs.roleList.reloadTable()
}, 300)
} }
} }
</script> </script>