fix: remove new-order param in localstorage when logout

This commit is contained in:
weichien00
2021-08-05 03:36:57 +08:00
parent a18c9afe3e
commit e0df8ac524
2 changed files with 3 additions and 2 deletions
@@ -53,6 +53,7 @@
},
successHandler(){
this.$store.dispatch('userAuthentication', {access_token: '', redirect_url: this.route('login')});
this.$store.dispatch('updateIfCreateNewOrder','');
},
errorHandler(){
this.$store.dispatch('userAuthentication', {access_token: '', redirect_url: this.route('login')});
+2 -2
View File
@@ -11,8 +11,8 @@ export default {
},
},
actions: {
updateIfCreateNewOrder(store){
localStorage.setItem('new-order', 1);
updateIfCreateNewOrder(store ,order){
localStorage.setItem('new-order', order);
store.commit('UPDATE_IF_NEW_ORDER');
},
showCreateOrderForm(store){