修改
This commit is contained in:
parent
5c1c2657f1
commit
e13462532f
@ -7,7 +7,6 @@ Vue.use(Vuex)
|
||||
const store = new Vuex.Store({
|
||||
state: {
|
||||
//公共的变量,这里的变量不能随便修改,只能通过触发mutations的方法才能改变
|
||||
name: '111',
|
||||
},
|
||||
mutations: {
|
||||
//相当于同步的操作
|
||||
@ -35,7 +34,6 @@ const store = new Vuex.Store({
|
||||
success(res) {},
|
||||
fail(err) {},
|
||||
complete(scc) {
|
||||
console.log(scc)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user