From 7748e3024de63aecb92f7af3f848a8160d853b0e Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 4 Mar 2021 13:31:06 +0900 Subject: [PATCH] Remove comment item from comment component --- frontend/components/comment/Comment.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/components/comment/Comment.vue b/frontend/components/comment/Comment.vue index f0a4afce..fdeef669 100644 --- a/frontend/components/comment/Comment.vue +++ b/frontend/components/comment/Comment.vue @@ -99,8 +99,6 @@ import Vue from 'vue' import VueFilterDateFormat from '@vuejs-community/vue-filter-date-format' import VueFilterDateParse from '@vuejs-community/vue-filter-date-parse' -import { CommentItem } from '@/models/comment' -import { UserItem } from '../../models/user'; Vue.use(VueFilterDateFormat) Vue.use(VueFilterDateParse) @@ -129,7 +127,7 @@ export default { methods: { updateComment(newText) { this.showEdit = false - const comment = CommentItem.valueOf({...this.comment, text:newText }) + const comment = {...this.comment, text:newText } this.$emit('update-comment', comment) }, cancel() {