Skip to content

Commit eba978a

Browse files
committed
删除setter 中的value
1 parent 6f8089d commit eba978a

File tree

1 file changed

+1
-1
lines changed
  • vue-cli/vue_todoList/dododo/src/components/Item

1 file changed

+1
-1
lines changed

vue-cli/vue_todoList/dododo/src/components/Item/Item.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
get(){
5151
return this.todo.isChecked
5252
},
53-
set(value){
53+
set(){
5454
// 这里是不能对 props 中属性进行修改 原则
5555
// this.todo.isChecked = value;
5656
this.toggleTodo(this.todo);

0 commit comments

Comments
 (0)