function toPageUrl(backPath, backParams = "") { return `../index/main?from=themeLink&backpath=${encodeURIComponent( backPath )}¶ms=${encodeURIComponent(backParams)}`; } function getUrlofLink(data) { return data.pathLink.split("?")[0]; } function getUrlofQuery(data) { let arr = data.pathLink.split("?") let params = []; arr.forEach((res, index) => { if (index >= 1) { params.push(res) } }) return params.join("?") || ""; } export default { toPageUrl, getUrlofLink, getUrlofQuery }