This commit is contained in:
qiudan 2023-12-28 09:27:08 +08:00
parent 5458c18ab1
commit 65c0f3d47c
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ export default {
// console.log('newDataArrAbs1', this.newDataArr); // console.log('newDataArrAbs1', this.newDataArr);
let arr = []; let arr = [];
if (this.newDataArr.length > 0) { if (this.newDataArr.length > 0) {
let newlist = JSON.parse(JSON.stringify(this.newDataArr)); let newlist = _.cloneDeep(this.newDataArr);
for (const item of newlist) { for (const item of newlist) {
if (!isNaN(item.speed) && (item.speed !== -1 || item.speed === 0)) { if (!isNaN(item.speed) && (item.speed !== -1 || item.speed === 0)) {
item.speed = Math.abs(item.speed); item.speed = Math.abs(item.speed);