diff --git a/src/views/system/UserAnnouncementList.vue b/src/views/system/UserAnnouncementList.vue index 561709a..4f6c64f 100644 --- a/src/views/system/UserAnnouncementList.vue +++ b/src/views/system/UserAnnouncementList.vue @@ -251,9 +251,9 @@ export default { this.formData = param this.$refs.showDynamNotice.detail() } else if(record.openType === 'url') { - console.log(record.openPage,'url') + const param = JSON.parse(record.busId) - if(Object.prototype.hasOwnProperty.call(param, 'contractType') && Number(param.contractType) === 1){ + if(param && Object.prototype.hasOwnProperty.call(param, 'contractType') && Number(param.contractType) === 1){ // 如果是支出合同的就去支出合同 多加一个判断 是不想再去新加一个消息模板 this.$router.push({ path:'/contractManagement/ExpenditureContractDetail',