|
|
|
@@ -4076,20 +4076,18 @@ function initVueDataset() { |
|
|
|
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') === `${dom}Desc` || params.get('sort').indexOf(`${dom}`) === -1) { |
|
|
|
if (params.get('page')) { |
|
|
|
location.search = `?sort=${dom}Asc&page=${params.get('page')}` |
|
|
|
} else { |
|
|
|
location.search = `?sort=${dom}Asc` |
|
|
|
} |
|
|
|
params.delete('sort') |
|
|
|
let asc = params.toString() + `&sort=${dom}Asc` |
|
|
|
location.search = asc |
|
|
|
} |
|
|
|
else { |
|
|
|
if (params.get('page')) { |
|
|
|
location.search = `?sort=${dom}Desc&page=${params.get('page')}` |
|
|
|
} else { |
|
|
|
location.search = `?sort=${dom}Desc` |
|
|
|
} |
|
|
|
|
|
|
|
params.delete('sort') |
|
|
|
let desc = params.toString() + `&sort=${dom}Desc` |
|
|
|
location.search = desc |
|
|
|
} |
|
|
|
}, |
|
|
|
setPrivate(uuid, privateFlag, index) { |
|
|
|
|