2021年7月23日
摘要: import from 'vuex'; computed:{ //直接读取state中的数据 ...mapState({ goodsList:state => state.home.goodsList }), //通过getters来读取数据 ...mapGetters(["goodsList"]) 阅读全文
posted @ 2021-07-23 20:43 文种玉 阅读(939) 评论(0) 推荐(0) 编辑
摘要: get请求 import {reqCategoryList} from '@/api' const state = { categoryList:[] } const mutations = { RECEIVE_CATEGORYLIST(state,categoryList){ state.cate 阅读全文
posted @ 2021-07-23 19:38 文种玉 阅读(59) 评论(0) 推荐(0) 编辑