修改bug
@@ -206,15 +206,15 @@ export default {
console.log("当前删除:" + id)
this.$store.dispatch('userRole/delRole',{id:id}).then(res=> {
this.getData();
- this.$message({
+ if(res.code==200){
- type: 'success',
+ this.$message({
- message: '删除成功!'
+ type: 'success',
- });
+ message: '删除成功!'
- }).catch(() => {
+ });
+ }else{
- type: 'warning',
+ this.$message.error(res.message);
- message: '网络错误,请重试!'
+ }
+
})
}).catch(() => {
this.$message({