Skip to content

Commit 6f35a42

Browse files
author
Alex Yang
committed
Lesson 2
1 parent bf4e97f commit 6f35a42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TodoList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<th>任务</th>
1212
</thead>
1313
<tbody>
14-
<tr v-for="task in parsedTaskList">
14+
<tr v-for="task in parsedTaskList" v-bind:key="task">
1515
<td>
1616
<span v-if="isDone(task)" style="color:gray;text-decoration:line-through;">{{ task }}</span>
1717
<span v-else >{{ task }}</span>

0 commit comments

Comments
 (0)