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