Browse Source

修改请求方式

zhaoyk 3 years ago
parent
commit
1139db2080
2 changed files with 3 additions and 3 deletions
  1. 2 2
      adm_comp/src/views/DiagramLegend.vue
  2. 1 1
      adm_comp/src/views/DiagramTemplate.vue

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

@@ -275,7 +275,7 @@
 					//console.log(err);
 				});
 				
-			this['$axios'].post(this['$common'].url + "equipTypes")
+			this['$axios'].get(this['$common'].url + "equipTypes")
 				.then(res => {
 					const root = res.data;
 					this.dicEquips = root.data;
@@ -283,7 +283,7 @@
 				.catch(err => {
 					console.log(err);
 				});	
-			this['$axios'].post(this['$common'].url + "diagramTypes")
+			this['$axios'].get(this['$common'].url + "diagramTypes")
 				.then(res => {
 					const root = res.data;
 					this.diagramTypes = root.data;

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

@@ -417,7 +417,7 @@
 					//console.log(err);
 				});
 				
-			this['$axios'].post(this['$common'].url + "equipTypes")
+			this['$axios'].get(this['$common'].url + "equipTypes")
 				.then(res => {
 					const root = res.data;
 					this.dicEquips = root.data;