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()