user logout issue fixes
This commit is contained in:
parent
a6145118f7
commit
c4a5582030
|
@ -151,6 +151,7 @@
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
<v-badge
|
<v-badge
|
||||||
|
v-if="cartProductsItem"
|
||||||
class="mb-4"
|
class="mb-4"
|
||||||
v-show="cartProductsItem.length"
|
v-show="cartProductsItem.length"
|
||||||
color="pink"
|
color="pink"
|
||||||
|
@ -254,11 +255,12 @@ export default {
|
||||||
categoryList: function () {
|
categoryList: function () {
|
||||||
return this.$store.state.headerCategoryList.categoryList;
|
return this.$store.state.headerCategoryList.categoryList;
|
||||||
},
|
},
|
||||||
|
// eslint-disable-next-line vue/return-in-computed-property
|
||||||
cartProductsProgress: function () {
|
cartProductsProgress: function () {
|
||||||
if (this.userAuth) {
|
if (this.userAuth) {
|
||||||
return this.$store.state.userCartProduct.cartProductsProgress;
|
return this.$store.state.userCartProduct.cartProductsProgress;
|
||||||
} else {
|
} else {
|
||||||
return this.$store.state.cartProduct.cartProductsProgress;
|
return;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
subMenuItem: {
|
subMenuItem: {
|
||||||
|
@ -267,18 +269,20 @@ export default {
|
||||||
},
|
},
|
||||||
set: function () {},
|
set: function () {},
|
||||||
},
|
},
|
||||||
|
// eslint-disable-next-line vue/return-in-computed-property
|
||||||
inProgress: function () {
|
inProgress: function () {
|
||||||
if (this.userAuth) {
|
if (this.userAuth) {
|
||||||
return this.$store.state.userCartProduct.inProgress;
|
return this.$store.state.userCartProduct.inProgress;
|
||||||
} else {
|
} else {
|
||||||
return this.$store.state.cartProduct.inProgress;
|
return
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// eslint-disable-next-line vue/return-in-computed-property
|
||||||
cartProductsItem() {
|
cartProductsItem() {
|
||||||
if (this.userAuth) {
|
if (this.userAuth) {
|
||||||
return this.$store.state.userCartProduct.cartProductList;
|
return this.$store.state.userCartProduct.cartProductList;
|
||||||
} else {
|
} else {
|
||||||
return this.$store.state.cartProduct.cartProductList;
|
return;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
categoryDetailsList: function () {
|
categoryDetailsList: function () {
|
||||||
|
|
|
@ -34,7 +34,7 @@ export default {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$store.dispatch("auth/logout");
|
this.$store.dispatch("auth/logout");
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "HomePage",
|
name: "LoginPage",
|
||||||
});
|
});
|
||||||
}, 5000);
|
}, 5000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue