feat: add function of refreshing page; #132

新增:刷新页面的功能;
This commit is contained in:
chenghongxing
2020-09-30 19:39:26 +08:00
parent 83576d88d7
commit 313af63f33
5 changed files with 102 additions and 51 deletions

View File

@@ -5,6 +5,10 @@ const TabsPagePlugin = {
$closePage(closeRoute, nextRoute) {
const event = new CustomEvent('page:close', {detail:{closeRoute, nextRoute}})
window.dispatchEvent(event)
},
$refreshPage(pageKey) {
const event = new CustomEvent('page:refresh', {detail:{pageKey}})
window.dispatchEvent(event)
}
}
})