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:45:08 +08:00
parent 6146ffc9c3
commit e54ac05df2
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>