mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-23 14:34:19 +00:00
fix: remove new-order param in localstorage when logout
This commit is contained in:
@@ -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
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user