mjh 4 anos atrás
pai
commit
2b1387222b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/views/CoursePage/components/NoticeItem.vue

+ 1 - 1
src/views/CoursePage/components/NoticeItem.vue

@@ -66,7 +66,7 @@ export default {
       return this.$store.getters.isTeacher;
     },
     isCreator() {
-      return this.noticeInfo.sender.id === this.$store.state.user.id;
+      return this.noticeInfo.sender.id === Number(this.$store.state.user.id);
     },
   },
   methods: {