修改禅道已知bug

This commit is contained in:
qq787203167
2022-08-18 17:58:49 +08:00
parent 0d02f004f3
commit 933918db33
3 changed files with 13 additions and 8 deletions
@@ -132,6 +132,7 @@
if (routeTitle) {
currentRoute.meta.title = routeTitle
}
console.log(currentRoute)
// update-end-author:sunjianlei date:20191223 for: 修复刷新后菜单Tab名字显示异常
this.pageList.push(currentRoute)
this.linkList.push(currentRoute.fullPath)
@@ -212,13 +213,13 @@
// update-begin-author:sunjianlei date:20200120 for: 动态更改页面标题
changeTitle(title) {
let projectTitle = '蔚来全球法规平台'
// 首页特殊处理
if (this.$route.path === indexKey) {
document.title = projectTitle
} else {
document.title = title + ' · ' + projectTitle
}
// let projectTitle = '蔚来全球法规平台'
// // 首页特殊处理
// if (this.$route.path === indexKey) {
// document.title = projectTitle
// } else {
// document.title = title + ' · ' + projectTitle
// }
},
// update-end-author:sunjianlei date:20200120 for: 动态更改页面标题
@@ -41,12 +41,15 @@
this.$route.meta.title === ' Home Page') {
this.Navigation = this.$route.meta.title
this.subNavigation = null
let projectTitle = '蔚来全球法规平台'
document.title = projectTitle
} else {
this.updateMenu()
}
},
methods: {
updateMenu() {
let projectTitle = '蔚来全球法规平台'
const routes = this.$route.matched.concat()
const { hidden } = this.$route.meta
if (routes.length >= 3 && hidden) {
@@ -61,6 +64,7 @@
})
this.Navigation = this.openKeys[1].meta.title
this.subNavigation = this.$route.meta.title
document.title = this.subNavigation + ' · ' + projectTitle
}
}
}
@@ -53,7 +53,6 @@
@change="changeTree"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
class="box-input"
style="width: 100%"
:tree-data="chapterContentsList"
tree-checkable
:placeholder="$t('PleaseSelect')+$t('chapterContents')"
@@ -410,5 +409,6 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-word;
}
</style>