chore: optimize the code of workplace; 🌟

This commit is contained in:
chenghongxing
2020-07-20 18:11:13 +08:00
parent 82e5955c3b
commit d91f3a8661
6 changed files with 42 additions and 71 deletions

View File

@@ -5,7 +5,12 @@ let db = new PouchDB('adminDb')
export default {
namespaced: true,
state: {
user: {}
user: {
name: '',
avatar: '',
position: '',
address: ''
}
},
mutations: {
setUser (state, user) {