From 66f1eb7ec95331800d9b862279545dd258fadb24 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Mon, 2 Sep 2019 17:12:02 +0800 Subject: [PATCH] fix(app-plus-nvue): targetStack --- .../packages/mp-vue/dist/mp.runtime.esm.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js b/packages/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js index 4f4fe1a6f..eb536888a 100644 --- a/packages/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js +++ b/packages/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js @@ -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]; } /* */ -- GitLab