可以采用getCurrentPages()[0].$vm.$store
uniapp如何在任意一个js文件获取$store数据(因为存在某页面this指向不是vue实例,所以无法使用this.$store)
猜你喜欢
转载自blog.csdn.net/m0_57033755/article/details/130901399
今日推荐
周排行