Skip to content

Commit f64e651

Browse files
committed
fix setting one-time props
1 parent 6a46e15 commit f64e651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/compile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ function makePropsLinkFn (props) {
524524
// one time binding
525525
value = vm.$parent.$get(prop.parentPath)
526526
if (_.assertProp(prop, value)) {
527-
vm.$set(path, value)
527+
vm._data[path] = value
528528
}
529529
} else {
530530
// dynamic binding
@@ -541,7 +541,7 @@ function makePropsLinkFn (props) {
541541
// literal, cast it and just set once
542542
value = _.toBoolean(_.toNumber(prop.raw))
543543
if (_.assertProp(prop, value)) {
544-
vm.$set(path, value)
544+
vm._data[path] = value
545545
}
546546
}
547547
}

0 commit comments

Comments
 (0)