您只需使用 this 而不是 Vue. 。这引用了方法内的当前VUE组件,因此它将相同的方式工作: editPost(post) { this.$set(post, 'edit', true) }.
確定! 回上一頁