# vue **Repository Path**: liuchaogang01/vue ## Basic Information - **Project Name**: vue - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vuexstudy ## Project setup ``` npm install ``` ### Compiles and hot-reloads for development ``` npm run serve ``` ### Compiles and minifies for production ``` npm run build ``` ### Run your tests ``` npm run test ``` ### Lints and fixes files ``` npm run lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ### vuex 学习 1、安装 npm install vuex --save 2、模块化的打包系统中,需要显式的通过Vue.use()来安装Vuex <1> 创建js文件,比如store.js <2> 在store.js 中 import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) // 必须调用此函数来注入 Vuex