提交 7ffe51a8 编写于 作者: G Gavrilov Evgeniy 提交者: Guillaume Chau

fix: invalid clone computed properties with vuex (#885) (#904)

上级 9375e61f
......@@ -233,6 +233,11 @@ export function installHook (target) {
for (var i in parent) {
var attrs = Object.getOwnPropertyDescriptor(parent, i)
if (attrs) {
if (attrs.hasOwnProperty('get') && attrs.get.name === 'computedGetter') {
Object.defineProperty(child, i, attrs)
continue
}
child[i] = _clone(parent[i], depth - 1)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册