用localstorage保存的数据里需要访问到data,不知道怎么实现?用watch监听路由,用beforeRouteLeave都没效果
可以结合vuex 来操作localStorage
755k questions
754k answers
5 comments
53.3k users