add title
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user