方案思路: 页面内仍然使用vuex做组件间传值,页面之间使用localstorage传值,并且监听storage事件,localstorage映射vuex
存储localstorage
监听并读取localstorage
参考:
1、h5 storage事件监听 https://blog.csdn.net/ruangong1203/article/details/52841135
2、vuex结合localstorage动态监听storage的变化 https://blog.csdn.net/qq_33168578/article/details/79714327
3、localstorage跨域方案 https://www.jianshu.com/p/e86d92aeae69