Commit 1f24d592 by Leo Zheng

修改策略名称

parent dab713b8
......@@ -41,7 +41,7 @@ export class strategyFactory {
'guchengLoad': guchengLoadStrategy,
'totalVisitorFlow': totalVisitorFlowStrategy,
'totalVisitorFlowByDay': totalVisitorFlowByHourStrategy,
'currentEventStrategy': currentEventStrategy,
'getCurrentEventCount': currentEventStrategy,
'totalEventCount': totalEventCountStrategy,
'getEventCountByYear': getEventCountByYearStrategy,
'getEventTimeDistribution': eventTimeDistributionStrategy,
......@@ -61,7 +61,6 @@ export class strategyFactory {
*/
static createStrategy(type: string): dataStrategy {
const StrategyClass = this.strategies[type];
console.log(type, 'created!');
if (!StrategyClass) {
throw new Error('Invalid strategy type.');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment