diff --git a/src/spa.js b/src/spa.js index 1cac5c0..be4dca2 100644 --- a/src/spa.js +++ b/src/spa.js @@ -1686,7 +1686,7 @@ // 如果当前页面是面板,则先收起之前的面板,再打开新面板 if($curPage.hasClass('spa-panel')) { - var $prevPage = viewsdata($curPage.data('id')).prevPage + var $prevPage = viewsdata[$curPage.data('id')].prevPage $prevPage.trigger('spa:openpage', [function() { $doc.trigger('spa:openpanel', [id, pushData])