uniapp如何在任意一个js文件获取$store数据(因为存在某页面this指向不是vue实例,所以无法使用this.$store)

可以采用getCurrentPages()[0].$vm.$store

猜你喜欢

转载自blog.csdn.net/m0_57033755/article/details/130901399