Compare commits

...

8 Commits

Author SHA1 Message Date
fe83097437 Merge branch 'hdrebase' of https://git.moguyn.cn/Miku/vuex into hdrebase 2022-06-09 09:27:02 +08:00
e06390b76d add hdrebase.txt to test edit command 2022-06-09 09:24:56 +08:00
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 18 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>
<div>
这是box组件测试,test
<div>这是box组件测试,test</div>
<button @click="divide(2)">除2</button>
<div>count的值为{{count}}</div>
</div>
</template>
<script>
import {mapState} from 'vuex'
export default {
data(){
return{ }
},
methods:{
divide(num){
this.$store.commit('divide',num)
}
},
computed:{
...mapState(['count'])
}
}
</script>

View File

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

View File

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