Browse Source

采集周期设置接口调整

chenwen 7 tháng trước cách đây
mục cha
commit
f3616d049b
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      src/api/gatherConfig.js

+ 5 - 5
src/api/gatherConfig.js

@@ -1,17 +1,17 @@
-import gatherRequest from '../utils/gatherRequest';
+import request from '../utils/request';
 
 const api={}
 
 api.loadCycle = ()=>{
-	return gatherRequest({
-	    url: '/api/cycle/load',
+	return request({
+	    url: '/gather/cycle/load',
 		method: 'get'
 	});
 }
 
 api.setCycle = ({single,diagram,liquid})=>{
-	return gatherRequest({
-	    url: '/api/cycle/setting',
+	return request({
+	    url: '/gather/cycle/setting',
 		method: 'post',
 	    data:  {single,diagram,liquid}
 	});