提交 2703d0e6 编写于 作者: tony001's avatar tony001

Update SERVICE.ts.ftl

上级 6effc611
...@@ -105,11 +105,11 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi ...@@ -105,11 +105,11 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
_data.push(..._response.data); _data.push(..._response.data);
}); });
// 排序 // 排序
_data.sort((a:any, b:any)=>{ // _data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start.replace(/-/g, "/"))); // let dateA = new Date(Date.parse(a.start.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start.replace(/-/g, "/"))); // let dateB = new Date(Date.parse(b.start.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ; // return dateA > dateB ? 1 : -1 ;
}); // });
let result = {status: 200, data: _data}; let result = {status: 200, data: _data};
resolve(result); resolve(result);
}).catch((response: any) => { }).catch((response: any) => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册