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

aws

parent c17e0b10
......@@ -95,6 +95,7 @@ export default {
this.$auth.$storage.setUniversal('loggedIn', 'false')
this.$auth.$storage.setUniversal('token', '')
this.$auth.$storage.setUniversal('userName', '')
this.$auth.$storage.setUniversal('ID', '')
}
} catch (e) {
this.$toast.error('ERR !', {
......
......@@ -263,8 +263,10 @@ export default {
}
},
mounted () {
this.getCardProducts()
this.getWishlish()
if (localStorage.getItem('auth.loggedIn') === 'true') {
this.getCardProducts()
this.getWishlish()
}
this.updateWishlist()
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