diff --git a/src/plugins/tabs-page-plugin.js b/src/plugins/tabs-page-plugin.js index d3c2ed2..6c9d95c 100644 --- a/src/plugins/tabs-page-plugin.js +++ b/src/plugins/tabs-page-plugin.js @@ -6,8 +6,9 @@ const TabsPagePlugin = { const event = new CustomEvent('page:close', {detail:{closeRoute, nextRoute}}) window.dispatchEvent(event) }, - $refreshPage(pageKey) { - const event = new CustomEvent('page:refresh', {detail:{pageKey}}) + $refreshPage(route) { + const fullPath = typeof route === 'object' ? route.fullPath : route + const event = new CustomEvent('page:refresh', {detail:{fullPath}}) window.dispatchEvent(event) }, $openPage(route, title) {