소스 검색

消息页面跳转

chris 3 년 전
부모
커밋
b30da2b72b
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/views/modules/msg-center/announcement.vue
  2. 2 0
      src/views/modules/msg-center/approve.vue

+ 1 - 0
src/views/modules/msg-center/announcement.vue

@@ -131,6 +131,7 @@
     },
     watch: {
       listenNotice: function (notice) {
+        if (!notice) return
         this.dataForm.noticeId = notice.noticeId
         this.dataForm.businessId = notice.businessId
         this.queryData()

+ 2 - 0
src/views/modules/msg-center/approve.vue

@@ -149,6 +149,8 @@
     },
     watch: {
       listenNotice: function (notice) {
+        console.log('notice = ' + JSON.stringify(notice))
+        if (!notice) return
         this.dataForm.noticeId = notice.noticeId
         this.dataForm.businessId = notice.businessId
         this.queryData()