[update 标准解读] 取最新的解读信息

This commit is contained in:
danshihao
2024-08-12 11:56:05 +08:00
parent 9e37dbeab9
commit 981d062d12
+3 -1
View File
@@ -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