# vue配置 **Repository Path**: wangxing2/vueConfigure ## Basic Information - **Project Name**: vue配置 - **Description**: 对vue各种配置的尝试 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-07-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-demo01 > A Vue.js project ## Build Setup ``` bash # install dependencies npm install # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build # build for production and view the bundle analyzer report npm run build --report # run unit tests npm run unit # run e2e tests npm run e2e # run all tests npm test ``` For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). //自己编辑的内容 vuex使用 console.log(this.$store.state.user.uid);获取值 this.$store.commit('changeUid',123);//调用方法 使用vux框架 公用方法放在src->commonFunction->common.js 调用:this.common.hello(); 公用指令放在src->directive->index.js 使用 v-focus 打包的配置 https://segmentfault.com/a/1190000016664571?utm_source=tag-newest npm run build 调用开发环境接口,打包开发环境 npm run build:test 调用测试环境接口,打包测试环境 npm run build:prod 调用生产环境接口,打包生产环境