Bläddra i källkod

修改服务端返回结构

zhaoyk 3 år sedan
förälder
incheckning
53e15cc968
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      adm_comp/src/views/DiagramTemplate.vue

+ 2 - 2
adm_comp/src/views/DiagramTemplate.vue

@@ -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) {