vue中使用vuex管理各种状态
摘要:要使用vuex首先得安装然后引入,在项目的src目录下建立store文件夹,分别新建state,js,mutation.js,index.js.getter.js,actions.js state.js,存储了组件之间需要共享的变量: import { playMode } from '@/util
阅读全文
posted @ 2020-05-27 16:28
posted @ 2020-05-27 16:28
posted @ 2020-05-27 15:25
posted @ 2020-05-27 09:48