1.根据数组内的时间排序
const tableData.value;
const sortData = tableData.value.sort((a: any, b: any) => a.alarmTime.localeCompare(b.alarmTime) || a.alarmTime.localeCompare(b.alarmTime));
2.qs.stringify,JSON.stringify 对参数param 实现接口的调用
const paeSon = {
limit: '50',
start: '0',
metas: ['platform_user'],
andList: [{ key: 'c1', operator: 'eq', value: 'a9721aed-4f0a-48f1-912d-4e1158a03be7' }],
orders: [{ name: 'createTime', order: 'desc' }, { name: 'username', order: 'asc' }],
};
const params = { param: JSON.stringify(paeSon) };
axios.post(`/api/epc/auth/user/query`, qs.stringify(params)).then((res) => {
console.log(res)
});

3.removeEventListener的使用