+13
-1
@@ -255,7 +255,19 @@ const store = new Vuex.Store({
|
||||
},
|
||||
updateApiUrl({ commit }, url) {
|
||||
commit('SET_API_URL', url)
|
||||
}
|
||||
},
|
||||
updateUserInfo({ commit }, info) {
|
||||
commit('$uStore', {
|
||||
name: 'vuex_user',
|
||||
value: info || {}
|
||||
});
|
||||
if (!info) {
|
||||
commit('$uStore', {
|
||||
name: 'vuex_token',
|
||||
value: ''
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
getters: {
|
||||
apiurl: state => state.apiurl
|
||||
|
||||
Reference in New Issue
Block a user