1
This commit is contained in:
parent
ccf8e88cde
commit
c17568b04b
|
|
@ -931,13 +931,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
imageClick(entity, clickPosition) {
|
imageClick(entity, clickPosition) {
|
||||||
entity.info?.chartData.sort((a, b) => {
|
|
||||||
// 将时间字符串转为 Date 对象进行比较
|
|
||||||
const timeA = new Date(a.collect_time);
|
|
||||||
const timeB = new Date(b.collect_time);
|
|
||||||
// 正序:timeA - timeB;倒序:timeB - timeA
|
|
||||||
return timeA - timeB;
|
|
||||||
});
|
|
||||||
// debugger
|
// debugger
|
||||||
this.selectedEntity = {
|
this.selectedEntity = {
|
||||||
id: entity.id,
|
id: entity.id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user