36.00ce1050.async.js 1.3 KB
Newer Older
afc163's avatar
Updates  
afc163 committed
1
webpackJsonp([36],{785:function(a,e,t){"use strict";function s(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(e,"__esModule",{value:!0});var r=t(15),n=s(r),l=t(129),f=s(l),u=t(318);e.default={namespace:"chart",state:{visitData:[],visitData2:[],salesData:[],searchData:[],offlineData:[],offlineChartData:[],salesTypeData:[],salesTypeDataOnline:[],salesTypeDataOffline:[],radarData:[]},effects:{fetch:f.default.mark(function a(e,t){var s,r=t.call,n=t.put;return f.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,r(u.fakeChartData);case 2:return s=a.sent,a.next=5,n({type:"save",payload:s});case 5:case"end":return a.stop()}},a,this)}),fetchSalesData:f.default.mark(function a(e,t){var s,r=t.call,n=t.put;return f.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,r(u.fakeChartData);case 2:return s=a.sent,a.next=5,n({type:"save",payload:{salesData:s.salesData}});case 5:case"end":return a.stop()}},a,this)})},reducers:{save:function(a,e){var t=e.payload;return(0,n.default)({},a,t)},setter:function(a,e){var t=e.payload;return(0,n.default)({},a,t)},clear:function(){return{visitData:[],visitData2:[],salesData:[],searchData:[],offlineData:[],offlineChartData:[],salesTypeData:[],salesTypeDataOnline:[],salesTypeDataOffline:[],radarData:[]}}}},a.exports=e.default}});