Compare commits

..

1 Commits

Author SHA1 Message Date
a068612944 回滚版本 2022-06-08 11:08:47 +08:00
3 changed files with 4 additions and 17 deletions

View File

@@ -1,24 +1,20 @@
<template> <template>
<div> <div>
<div>这是box组件测试,test</div> 这是box组件测试,test
<button @click="divide(2)">除2</button>
<div>count的值为{{count}}</div>
</div> </div>
</template> </template>
<script> <script>
import {mapState} from 'vuex'
export default { export default {
data(){ data(){
return{ } return{ }
}, },
methods:{ methods:{
divide(num){
this.$store.commit('divide',num)
}
}, },
computed:{ computed:{
...mapState(['count'])
} }
} }
</script> </script>

View File

@@ -35,9 +35,6 @@ export default new Vuex.Store({
}, },
xc(state,step){ xc(state,step){
state.count=state.count * step state.count=state.count * step
},
divide(state,num){
state.count = state.count / num
} }
}, },
actions: { actions: {

View File

@@ -1,7 +1 @@
测试远程dev分支 测试远程dev分支
主分支修改
测试合并
update dev
第一次提交
第二次提交
第三次提交