force page reload on back button
This commit is contained in:
parent
ab5a5a0968
commit
b90f6a46bf
1 changed files with 11 additions and 0 deletions
|
|
@ -24,7 +24,18 @@ const FMGAnimatedTransition = require("@/assets/img/FMGTransitionAnimation.svg")
|
|||
},
|
||||
methods: {
|
||||
showModal() {
|
||||
|
||||
//Display modal
|
||||
this.isModalVisible = true;
|
||||
|
||||
//Force page reload on back button
|
||||
window.addEventListener("pageshow", function(evt) {
|
||||
if(evt.persisted){
|
||||
setTimeout(function(){
|
||||
window.location.reload();
|
||||
}, 10);
|
||||
}
|
||||
}, false);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue