{
//console.log('Location Search', location.search);
let form = $refs.filter_form;
const queryString = new URLSearchParams(new FormData(form)).toString();
loading = true;
if (location.search.indexOf('filter') > -1 && location.search.indexOf('sort_by') > -1) {
//console.log('splitting sort by', location.search.split('&sort_by')[1]);
splitUrl = location.search.split('&sort_by')[1];
currentUrl = '/collections/store-localization/generic-dynamic-content-translation-9?' + queryString + '&sort_by' + splitUrl;
//console.log('Filter And Sort by word exist', currentUrl);
}else if (location.search.indexOf('sort_by') > -1) {
splitUrl = location.search.split('?');
currentUrl = '/collections/store-localization/generic-dynamic-content-translation-9?' + queryString + '&' + splitUrl[1];
//console.log('Sort By word exist', currentUrl);
}else{
currentUrl = '/collections/store-localization/generic-dynamic-content-translation-9?' + queryString;
//console.log('Filter word does not exist', currentUrl);
}
fetch(currentUrl)
.then(response => response.text())
.then(data => {
let html_div = document.createElement('div');
html_div.innerHTML = data;
let html_dom = html_div.querySelector('#MainCollectionDisplay').innerHTML;
document.querySelector('#MainCollectionDisplay').innerHTML = html_dom;
// Update the page without refreshing the page
if (location.search.indexOf('filter') > -1 && location.search.indexOf('sort_by') > -1) {
history.replaceState(null, null, '?' + queryString + '&sort_by' + splitUrl);
}else if (location.search.indexOf('sort_by') > -1) {
history.replaceState(null, null, '?' + queryString + '&' + splitUrl[1]);
}else{
history.replaceState(null, null, '?' + queryString);
}
document.querySelector('.collectionLeftSide').classList.remove('active');
document.querySelector('body').classList.remove('filterActive');
})
.catch(error => console.error('Error:', error))
.finally(() => loading = false);
})"
>
生物素
生物素是一种必需的维生素,没有它我们就无法生存,因为它是我们分解碳水化合物、脂肪和蛋白质以获取能量的重要组成部分。*虽然生物素不储存在体内,但可以通过食物或补充剂进行补充。*生物素是形成角蛋白(指甲和头发的组成部分)所必需的。*补充生物素可能有助于强化薄而脆的指甲。*