解决方案:
(1)传参使用:encodeURI
window.open打开新标签,传参使用encodeURI
window.open(`${row.url}?open=1&name=${encodeURI(row.name)}` + '_blank')
(2)接收参数使用:decodeURI
window.location.href拿到地址栏内容,接收参数使用decodeURI
let href = window.location.href
...
innerSystemName.value = decodeURI(href.slice(start,end))