|
@@ -219,7 +219,7 @@
|
|
|
this['$axios'].post(this['$common'].url + "diagram0/newDiagram" + this.buildUrlParams(), params)
|
|
|
.then(res => {
|
|
|
const root = res.data;
|
|
|
- if(root.message == 'success') {
|
|
|
+ if(root.result == 'success') {
|
|
|
const newObj = root.data;
|
|
|
node.data.children.push(newObj);
|
|
|
|
|
@@ -340,7 +340,7 @@
|
|
|
this['$axios'].post(this['$common'].url + 'diagram0/' + action, params)
|
|
|
.then(res => {
|
|
|
const root = res.data;
|
|
|
- if(root.message == 'success') {
|
|
|
+ if(root.result == 'success') {
|
|
|
//记录之前的选中对象id
|
|
|
// var selId = this.propsData.id;
|
|
|
// if(!selId) {
|