【bug】测试修改面包屑title
This commit is contained in:
@@ -532,6 +532,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// console.log(this.$route,'this.$route this.$route')
|
||||
// 为不同会议的参会情况去设置不同的权限编码
|
||||
this.setCodeByMeetingType(this.$route.query.meetingType)
|
||||
// 获取会议详情
|
||||
@@ -540,7 +541,6 @@ export default {
|
||||
}
|
||||
getMeetInfoById(param).then(res => {
|
||||
if (res.success) {
|
||||
console.log(res.result)
|
||||
this.currentMeetingInfo = Object.assign({}, res.result)
|
||||
// 转化会议类型
|
||||
this.meetingType = this.generateMeetingType(this.currentMeetingInfo.meetingType)
|
||||
@@ -830,6 +830,20 @@ export default {
|
||||
break
|
||||
}
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
$route:{
|
||||
immediate: true,
|
||||
handler: function(val, oldVal){
|
||||
if(val.query.meetingType && val.query.meetingType === '3' ){
|
||||
val.meta.title ='国际研讨会参会情况'
|
||||
console.log(val,'val')
|
||||
console.log(this.$route,'this.$ROUTE')
|
||||
}
|
||||
},
|
||||
// 深度观察监听
|
||||
deep: true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user