Commit e43b1109 authored by Le Dinh Trung's avatar Le Dinh Trung

aws

parent c17e0b10
...@@ -95,6 +95,7 @@ export default { ...@@ -95,6 +95,7 @@ export default {
this.$auth.$storage.setUniversal('loggedIn', 'false') this.$auth.$storage.setUniversal('loggedIn', 'false')
this.$auth.$storage.setUniversal('token', '') this.$auth.$storage.setUniversal('token', '')
this.$auth.$storage.setUniversal('userName', '') this.$auth.$storage.setUniversal('userName', '')
this.$auth.$storage.setUniversal('ID', '')
} }
} catch (e) { } catch (e) {
this.$toast.error('ERR !', { this.$toast.error('ERR !', {
......
...@@ -263,8 +263,10 @@ export default { ...@@ -263,8 +263,10 @@ export default {
} }
}, },
mounted () { mounted () {
if (localStorage.getItem('auth.loggedIn') === 'true') {
this.getCardProducts() this.getCardProducts()
this.getWishlish() this.getWishlish()
}
this.updateWishlist() this.updateWishlist()
this.updateCart() this.updateCart()
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment