Open2021/10/25にコメント追加2vue(nuxtjs)でthlogを作るとき課題 sh02021/10/25 vuejsでリストの内容がupdateされないときの解決策 this.comment.replies[id] = data let replies_temp = [...this.comment.replies] this.comment.replies = [] this.$nextTick(() => { this.comment.replies = [...replies_temp] }) リストを[]にしてupdateすればできる sh02021/10/25ss 返信を追加
sh02021/10/25 vuejsでリストの内容がupdateされないときの解決策 this.comment.replies[id] = data let replies_temp = [...this.comment.replies] this.comment.replies = [] this.$nextTick(() => { this.comment.replies = [...replies_temp] }) リストを[]にしてupdateすればできる sh02021/10/25ss 返信を追加