let part = eval(decodeURIComponent("/" + this.passwordParent.configValue + "/"))
eval()函数
encodeURIComponent() 对uri进行编码
decodeURIComponent() 对uri进行解码
let uri="https://www.runoob.com/my test.php?name=ståle&car=saab";
let uri_encode=encodeURIComponent(uri);
console.log(uri_encode)
let uri_decode = decodeURIComponent(uri_encode)
console.log(uri_decode)
//输出结果
https%3A%2F%2Fwww.runoob.com%2Fmy%20test.php%3Fname%3Dst%C3%A5le%26car%3Dsaab
https://www.runoob.com/my test.php?name=ståle&car=saab