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