Skip to content

Commit 9355bc6

Browse files
committed
update some change
1 parent f3f852c commit 9355bc6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/NoteTitle.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div @click="updateActiveNote(note)" :class="{active:activeNote.id === note.id}">
2+
<div @click="updateActiveNote(note)" :class="classItems">
33
<h4>{{note.text}}</h4>
44
</div>
55
</template>
@@ -12,6 +12,11 @@ export default {
1212
computed: {
1313
activeNote() {
1414
return this.$store.state.activeNote;
15+
},
16+
classItems() {
17+
return {
18+
active: this.activeNote.id === this.note.id
19+
};
1520
}
1621
},
1722
methods: {

0 commit comments

Comments
 (0)