When you're using Vuex you should only mutate your state throught your mutations, in your Vuex you should create a mutation like this :
setBalance(state, payload) {
auth.user.balance = payload;
},
and in your component you need to map your new mutation in your methods
,
...mapMutations('auth', ['setBalance']),
don't forget to import the mapMutations from vuex
import { mapMutations } from 'vuex';
and in your component when you want to set a new value to balance you call
test(){
let newValue = 10;
this.setBalance(newValue);
}
You can learn more about mutations in Vuex store here in Vuex documentation