|
@@ -324,10 +324,10 @@ export default {
|
|
this.propertyDialog = false;
|
|
this.propertyDialog = false;
|
|
this.searchProperty();
|
|
this.searchProperty();
|
|
})
|
|
})
|
|
- .catch(() => {
|
|
|
|
|
|
+ .catch(error => {
|
|
this.$notify({
|
|
this.$notify({
|
|
type: "error",
|
|
type: "error",
|
|
- message: "名称重复,请重新命名"
|
|
|
|
|
|
+ message: error.response.data.desc
|
|
});
|
|
});
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
@@ -341,10 +341,10 @@ export default {
|
|
this.propertyDialog = false;
|
|
this.propertyDialog = false;
|
|
this.searchProperty();
|
|
this.searchProperty();
|
|
})
|
|
})
|
|
- .catch(() => {
|
|
|
|
|
|
+ .catch(error => {
|
|
this.$notify({
|
|
this.$notify({
|
|
type: "error",
|
|
type: "error",
|
|
- message: "名称重复,请重新命名"
|
|
|
|
|
|
+ message: error.response.data.desc
|
|
});
|
|
});
|
|
});
|
|
});
|
|
}
|
|
}
|