修改排序规则

This commit is contained in:
liaozetao
2024-03-21 11:20:08 +08:00
parent dd8b755aec
commit 543719ecd5

View File

@@ -159,6 +159,15 @@ export default {
maxValue: maxValue,
};
this.items.splice(this.items.length, 0, item);
this.items = this.items.sort((a, b) => {
if (a.minValue > b.minValue) {
return -1;
} else if (a.minValue < b.minValue) {
return 1;
} else {
return 0;
}
});
this.renderTableInfo();
},
save() {