接口请求

This commit is contained in:
2020-10-10 08:59:54 +08:00
parent 0f29972dee
commit 8bf7b662d5
4 changed files with 29 additions and 3 deletions

View File

@@ -2,8 +2,15 @@ import { createStore } from 'vuex'
export default createStore({
state: {
userinfo:{
name: "",
img: ""
}
},
mutations: {
setUserInfo(state, userinfo){
state.userinfo = userinfo
}
},
actions: {
},