解决 VUE 微信 IOS 路由跳转问题

watch: {
    "$route"(){
        if (/iPhone|mac|iPod|iPad/i.test(navigator.userAgent)) {
          location.href = 'localhost:8081/mob/#' + this.$route.path
        }
    },
  },
posted @ 2018-09-27 16:30  taoquns  阅读(4094)  评论(1编辑  收藏  举报