Skip to content

Commit 9062bd3

Browse files
committed
fix: Wait for the message to reset before setting the new value
1 parent 16f2528 commit 9062bd3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ export default function install (Vue, options = {}, router = null) {
2323
set (message, politeness) {
2424
if (!this.data) return
2525
this.reset()
26-
this.data.politeness = politeness || this.data.politeness
27-
this.data.content = message
26+
draf(() => {
27+
this.data.politeness = politeness || this.data.politeness
28+
this.data.content = message
29+
})
2830
},
2931

3032
polite (message) {

0 commit comments

Comments
 (0)