报错:URI malformed at decodeURIComponent
报错:URI malformed at decodeURIComponent
this.examDetail = JSON.parse(decodeURIComponent(examDetail))
this.getOutTestList(this.examDetail);
改成:
let str = JSON.parse(examDetail)
str = str.replace(/%/g, '%25')
let query = encodeURIComponent(str)
this.examDetail = query
参考:URIError: URI malformed“ found in…报错处理以及完善uniapp针对对象传参