|
|
@@ -199,11 +199,9 @@
|
|
|
}).then(() => {
|
|
|
this.$message.success('删除成功');
|
|
|
this.getData();
|
|
|
- }).catch(action => {
|
|
|
- if (action === 'cancel') {
|
|
|
- this.$message.info('删除取消');
|
|
|
- } else {
|
|
|
- this.$message.error('删除失败');
|
|
|
+ }).catch(e => {
|
|
|
+ if (e !== 'cancel') {
|
|
|
+ this.$message.error(e.error);
|
|
|
}
|
|
|
})
|
|
|
},
|