Some changes
gitea/salix/2112-order_catalog_improvements This commit looks good
Details
gitea/salix/2112-order_catalog_improvements This commit looks good
Details
This commit is contained in:
parent
c9fd48b0cd
commit
9e435e9553
|
@ -278,18 +278,19 @@ class Controller {
|
|||
updateStateParams() {
|
||||
const params = {};
|
||||
|
||||
params.categoryId = undefined;
|
||||
if (this.categoryId)
|
||||
params.categoryId = this.categoryId;
|
||||
else params.categoryId = undefined;
|
||||
|
||||
params.typeId = undefined;
|
||||
if (this.typeId)
|
||||
params.typeId = this.typeId;
|
||||
else params.typeId = undefined;
|
||||
|
||||
params.itemId = undefined;
|
||||
if (this.itemId)
|
||||
params.itemId = this.itemId;
|
||||
else params.itemId = undefined;
|
||||
|
||||
params.tags = undefined;
|
||||
if (this.tags.length) {
|
||||
const tags = [];
|
||||
for (let tag of this.tags) {
|
||||
|
@ -306,7 +307,7 @@ class Controller {
|
|||
}
|
||||
|
||||
params.tags = JSON.stringify(tags);
|
||||
} else params.tags = undefined;
|
||||
}
|
||||
|
||||
this.$state.go(this.$state.current.name, params);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue