摘要: 概念 状态管理器,存取数据用的,可以跨组件通信(屏蔽了组件的父子关系) 定义store //store/index.js import { createStore } from "vuex"; const store = createStore({ state:{ // 存数据的地方 count:0 阅读全文
posted @ 2022-11-07 15:45 Sherwin_szw 阅读(81) 评论(0) 推荐(0) 编辑