提交 6da5c843 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

fixed IE

上级 92f1f1ae
......@@ -53,10 +53,22 @@ export default {
},
created() {
vm = this
if(vm.$route.name!='loginPage') {
vm.getToken()
}
},
mounted() {
function checkIE(){
return '-ms-scroll-limit' in document.documentElement.style && '-ms-ime-align' in document.documentElement.style
}
if (checkIE()) {
window.addEventListener('hashchange', () => {
var currentPath = window.location.hash.slice(1);
if (this.$route.path !== currentPath) {
this.$router.push(currentPath)
}
}, false)
}
},
methods: {
...mapActions('reservationManage',['getUserName']),
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册