/* * @Company: hugeInfo * @Author: ldh * @Date: 2022-03-24 21:19:40 * @LastEditTime: 2022-05-24 19:16:54 * @LastEditors: ldh * @Version: 1.0.0 * @Description: 调解动态状态集 */ class mediateDynamicStatus { constructor() { this.legObj = {}; this.num = 0; } // 清空数据 clear() { this.legObj = {}; } // 设置时间 setLength(key, value) { let len = this.legObj[key] || 0; this.legObj[key] = len + value; } // 设置当前截取的时间戳 setTime(key, value) { this.legObj[key] = value; } } export default new mediateDynamicStatus();