Compare commits

..

6 Commits

Author SHA1 Message Date
a1672bec14 add hdrebase.txt to test edit command 2022-06-09 08:56:26 +08:00
ec0bc3a6eb test edit command 2022-06-09 08:46:59 +08:00
62a4e4cb82 合并为最新的提交
第四次修改
2022-06-08 15:26:40 +08:00
e8cce09f51 push to moguyn/master after merging 2022-06-08 10:51:22 +08:00
1b5f17423d update dev's content 2022-06-08 10:44:18 +08:00
137c41c25b test branch merge 2022-06-08 10:09:27 +08:00
4 changed files with 19 additions and 4 deletions

1
vuex_demo1/hdrebase.txt Normal file
View File

@@ -0,0 +1 @@
add hdrebase.txt to test edit command

View File

@@ -1,20 +1,24 @@
<template> <template>
<div> <div>
这是box组件测试,test <div>这是box组件测试,test</div>
<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,6 +35,9 @@ 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 +1,8 @@
测试远程dev分支 测试远程dev分支
主分支修改
测试合并
update dev
第一次提交
第二次提交
第三次提交
第四次提交