Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 09cc72f

Browse files
committed
before
1 parent 6bd2d49 commit 09cc72f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rx-hub",
3-
"version": "5.2.3",
3+
"version": "5.2.4",
44
"description": "> data hub",
55
"main": "index.js",
66
"peerDependencies": {

src/tool/vue.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ VuePlugin.install = function(Vue, options={}) {
7676

7777
beforeDestroy() {
7878
this.$unsubscribe();
79+
},
80+
beforeRouteLeave() {
81+
this.$unsubscribe();
7982
}
8083
});
8184
}

0 commit comments

Comments
 (0)