Try fixing router v3
This commit is contained in:
parent
15121000e8
commit
6c67d7a3db
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
// This text is simply to make sure the 404.html file is bigger than 512 bytes, else, internet explorer will ignore it.
|
||||
// Thank you internet explorer for requiring such awesome workarounds in order to work properly
|
||||
// ====================================================================================================================
|
||||
sessionStorage.redirect = location.href;
|
||||
sessionStorage.redirect = location.pathname;
|
||||
</script>
|
||||
<meta http-equiv="refresh" content="0;URL='/'">
|
||||
</head>
|
||||
|
|
|
@ -34,7 +34,7 @@ new Vue({
|
|||
if (sessionStorage.redirect) {
|
||||
const { redirect } = sessionStorage;
|
||||
delete sessionStorage.redirect;
|
||||
this.$router.push(redirect);
|
||||
router.push(redirect);
|
||||
}
|
||||
},
|
||||
}).$mount('#app');
|
||||
|
|
Loading…
Reference in a new issue