storage url o'zgartirildi

This commit is contained in:
2026-04-28 18:02:39 +05:00
parent b8a4efadc2
commit a11b9c9100
6 changed files with 45 additions and 15 deletions

View File

@@ -1176,11 +1176,16 @@ export default {
this.category.three = {};
this.category.three_view = false;
if (this.category.first.parents.length > 0) {
if (!this.category.first || !this.category.first.id) {
this.products.category_id = null;
return;
}
this.products.category_id = this.category.first.id;
this.getCharacteristics(this.category.first.id);
if (this.category.first.parents && this.category.first.parents.length > 0) {
this.category.two_view = true;
} else {
this.getCharacteristics(this.category.first.id);
this.products.category_id = this.category.first.id;
}
},
@@ -1188,14 +1193,21 @@ export default {
this.category.three = {};
this.category.three_view = false;
if (this.category.two.parents.length > 0) {
if (!this.category.two || !this.category.two.id) {
return;
}
this.products.category_id = this.category.two.id;
this.getCharacteristics(this.category.two.id);
if (this.category.two.parents && this.category.two.parents.length > 0) {
this.category.three_view = true;
}
},
DetectCategoryThree() {
this.getCharacteristics(this.category.three.id);
this.product.category_id = this.category.three.id;
this.products.category_id = this.category.three.id;
},
async getCharacteristics(id) {