Skip to content

Commit

Permalink
fix(SPA): 修复当action sheet呼出并且路由变化时依然存在的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Jan 12, 2019
1 parent ff8d9e0 commit bc8f95a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/spa/src/components/ActionSheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ export default {
cancelBtn: '取消',
}
},
watch: {
$route () {
this.cancel()
},
},
created: function () {
/**
* Call actionSheet
Expand Down

0 comments on commit bc8f95a

Please sign in to comment.