提交 a25f90ad 编写于 作者: fxy060608's avatar fxy060608

fix(mp): v-model support dynamic add reactive properties

上级 1fd9e9d2
......@@ -5893,14 +5893,16 @@ function internalMixin(Vue) {
if (!target) {
target = this;
}
target[key] = value;
// 解决动态属性添加
Vue.set(target, key, value)
};
Vue.prototype.__set_sync = function(target, key, value) {
if (!target) {
target = this;
}
target[key] = value;
// 解决动态属性添加
Vue.set(target, key, value)
};
Vue.prototype.__get_orig = function(item) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册