From 981d062d1221d3e9ced28ce2aa6a050e63ec0a7f Mon Sep 17 00:00:00 2001 From: danshihao Date: Mon, 12 Aug 2024 11:56:05 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E6=A0=87=E5=87=86=E8=A7=A3=E8=AF=BB]?= =?UTF-8?q?=20=E5=8F=96=E6=9C=80=E6=96=B0=E7=9A=84=E8=A7=A3=E8=AF=BB?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/StandardResolutionSheet.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/StandardResolutionSheet.vue b/src/components/StandardResolutionSheet.vue index 914815e..73bf0a5 100644 --- a/src/components/StandardResolutionSheet.vue +++ b/src/components/StandardResolutionSheet.vue @@ -287,7 +287,9 @@ export default { this.loading = true getStandardInterpretation({ standard_id: this.spiltInfo.standardId }).then(res => { if (res.success) { - this.standardInterpret = res.result[0] || {} + const list = res.result || [] + // 后端说id是随时间递增的,取最新数据也就是取id最大的数据 + this.standardInterpret = list.sort((a, b) => b - a)[0] || {} this.selectedTreeKeys = [] this.hightMenuId = null this.clauseLabelInfo = this.standardInterpret