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

View File

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

View File

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

View File

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