diff --git a/subpkg/archivesDetail/archivesDetail.vue b/subpkg/archivesDetail/archivesDetail.vue index 659ce6d..fabb0f1 100644 --- a/subpkg/archivesDetail/archivesDetail.vue +++ b/subpkg/archivesDetail/archivesDetail.vue @@ -127,6 +127,7 @@ }, data() { return { + listMap: new Map(), tabLists: [{ name: '基本信息', }, { @@ -156,6 +157,7 @@ }, onLoad(options) { this.initInformationDetails({ id: options.id }); + this.initMap(); }, onShow() {}, computed: { @@ -166,6 +168,11 @@ } }, methods: { + initMap() { + comonentList.forEach(item => { + this.listMap.set(item.id, item.name); + }) + }, async initInformationDetails(id) { let res = await informationDetails(id); this.$u.sleep(500).then(()=>{