add title

This commit is contained in:
gcw_IJ7DAiVL
2025-11-17 09:28:04 +08:00
parent 802df4d446
commit 1c76c7d23c

View File

@ -29,9 +29,11 @@ export default {
activeIndex: 1,
}
},
created() {
this.getTitle()
},
mounted() {
this.activeIndex = getStorage('activeIndex') || 1
this.getTitle()
},
beforeDestroy() {
@ -44,7 +46,10 @@ export default {
.then(text => {
const parsedData = iniParser.parse(text);
this.tabList[0].label = parsedData.title.msg || '道路通过性分析'
});
})
.catch(() => {
this.tabList[0].label = '道路通过性分析'
})
},
setActiveIndex(id) {
if (this.activeIndex !== id) {