分享设备列表接口以及sql修改

This commit is contained in:
hp
2022-04-27 18:56:51 +08:00
parent cabc91f3bc
commit 224d4e1f7e
5 changed files with 20 additions and 23 deletions

View File

@@ -18,6 +18,9 @@ const user = {
SET_NAME: (state, name) => {
state.name = name
},
SET_USERID: (state, userId) => {
state.userId = userId
},
SET_AVATAR: (state, avatar) => {
state.avatar = avatar
},
@@ -94,6 +97,7 @@ const user = {
}
commit('SET_NAME', user.userName)
commit('SET_AVATAR', avatar)
commit('SET_USERID', user.userId)
resolve(res)
}).catch(error => {
reject(error)