From 58919f836bbf5e1465e634a9a6f4d7cd4a420106 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 13 Dec 2017 20:38:02 +0800 Subject: [PATCH] update --- dist/fix/fix.compact.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/fix/fix.compact.js b/dist/fix/fix.compact.js index 52e61549f..b1c8cb25e 100644 --- a/dist/fix/fix.compact.js +++ b/dist/fix/fix.compact.js @@ -51,14 +51,16 @@ function findStore (widget) { var p = widget; while (p) { - if (p.store) { + if (p.store || p.__cacheStore) { break; } p = p._parent || (p.options && p.options.element); } if (p) { - return p.store; + widget.__cacheStore = p.store; + return p.__cacheStore || p.store; } + throw new Error("找不到store"); } var _init = BI.Widget.prototype._init;