摘要: ###vue3中改如何使用vuex 首先,npm安装vuex。 npm install vuex@next --save 然后在文件夹路径下建立views/store/index.js。 mutations使用store.commit方法触发。action 通过 store.dispatch方法触发 阅读全文
posted @ 2022-03-13 18:11 小阿紫 阅读(1173) 评论(0) 推荐(0)