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

fix(app-plus-nvue): targetStack

上级 9c4b95a6
......@@ -737,16 +737,16 @@ Dep.prototype.notify = function notify () {
/* eslint-disable no-undef */
Dep.SharedObject = typeof SharedObject !== 'undefined' ? SharedObject : {};
Dep.SharedObject.target = null;
var targetStack = [];
Dep.SharedObject.targetStack = [];
function pushTarget (target) {
targetStack.push(target);
Dep.SharedObject.targetStack.push(target);
Dep.SharedObject.target = target;
}
function popTarget () {
targetStack.pop();
Dep.SharedObject.target = targetStack[targetStack.length - 1];
Dep.SharedObject.targetStack.pop();
Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
}
/* */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册