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