From 264043e7cc6d70800ae8f3790d5d35478e29f4b0 Mon Sep 17 00:00:00 2001 From: linfso Date: Wed, 4 Sep 2024 07:48:16 +0800 Subject: [PATCH] md --- src/views/openpage/queryTraceInfo.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/openpage/queryTraceInfo.vue b/src/views/openpage/queryTraceInfo.vue index 7a7af89..d4974ca 100644 --- a/src/views/openpage/queryTraceInfo.vue +++ b/src/views/openpage/queryTraceInfo.vue @@ -163,7 +163,9 @@ export default { } if(this.latestBillList&&this.latestBillList.length>0){ - this.latestBillList= this.latestBillList.reverse() + this.latestBillList= this.latestBillList.reverse(); + let cutList=[...this.latestBillList]; + this.latestBillList=cutList.slice(0,5); storage["latestBillList"] = this.latestBillList window.localStorage.setItem('queryDataStorage', JSON.stringify(storage)) }