链接中不能有多余字符

master
OathK1per 2022-11-15 15:31:42 +08:00
parent 799827d2be
commit fef13e39a1
1 changed files with 3 additions and 2 deletions

View File

@ -208,8 +208,9 @@
// console.log('key is ' + key + ', value is ' + param[key]);
// }
const certaintyStr = param.name;
window.location.href = "${base}/space/list?certainty=0&certaintyStr=" + certaintyStr;
const certaintyStr = param.name.slice(0, 1);
console.log("certaintyStr : " + certaintyStr);
window.location.href = "${base}/space/list?certaintyStr=" + certaintyStr + "&certainty=0";
});
</script>