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