# vueprojectapp **Repository Path**: lxhen6/vueprojectapp ## Basic Information - **Project Name**: vueprojectapp - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-04-21 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-project > 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). # git分支 git pull git checkout XX //切换进程到分支 git add . git commit -m "xxx" git push git checkout master git merge ogigin/xxx git push #vuex import { mapState, mapMutations, .... } from 'vuex' // 将内容映射到当前组件上 computed: { ...mapState(['xxx']) } methods: { biandEvent () { this.xxxx(xxx) } ...mapMutations(['xxxx']) } #keep-alive (方法:activated: 路由激活时执行。deactivated: 路由移除时执行) #异步组件 使用箭头函数jike eg1(路由组件): component: () => import '@/pages/details/Detail' eg2(页面组件): components: { header: () => import '@/pages/details/Detail' }