|
|
|
@@ -4093,19 +4093,18 @@ function initVueDataset() { |
|
|
|
sortIcon(dom, sort) { |
|
|
|
const params = new URLSearchParams(location.search) |
|
|
|
if (sort === "up") { |
|
|
|
|
|
|
|
if (params.toString() === '') { |
|
|
|
location.href = `${location.href}?sort=${dom}Asc` |
|
|
|
} |
|
|
|
else if (!params.get('sort')) { |
|
|
|
location.href = `${location.href}&sort=${dom}Asc` |
|
|
|
} else if (params.get('sort').indexOf(`${dom}`) === -1) { |
|
|
|
} else if (params.get('sort') && params.get('sort').indexOf(`${dom}Asc`) !== -1) { |
|
|
|
params.delete('sort') |
|
|
|
location.search = params.toString() |
|
|
|
} else { |
|
|
|
params.set("sort", `${dom}Asc`) |
|
|
|
let asc = params.toString() |
|
|
|
location.search = asc |
|
|
|
} else { |
|
|
|
params.delete('sort') |
|
|
|
location.search = params.toString() |
|
|
|
} |
|
|
|
} |
|
|
|
else if (sort === "down") { |
|
|
|
@@ -4115,13 +4114,13 @@ function initVueDataset() { |
|
|
|
else if (!params.get('sort')) { |
|
|
|
location.href = `${location.href}&sort=${dom}Desc` |
|
|
|
} |
|
|
|
else if (params.get('sort').indexOf(`${dom}`) === -1) { |
|
|
|
else if (params.get('sort') && params.get('sort').indexOf(`${dom}Desc`) !== -1) { |
|
|
|
params.delete('sort') |
|
|
|
location.search = params.toString() |
|
|
|
} else { |
|
|
|
params.set("sort", `${dom}Desc`) |
|
|
|
let asc = params.toString() |
|
|
|
location.search = asc |
|
|
|
} else { |
|
|
|
params.delete('sort') |
|
|
|
location.search = params.toString() |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|