|
@@ -315,6 +315,8 @@
|
|
|
}
|
|
|
let queryStr = this.getQueryStr();
|
|
|
if (queryStr) {
|
|
|
+ // queryStr 解码
|
|
|
+ queryStr = decodeURI(queryStr);
|
|
|
this.searchStr = queryStr;
|
|
|
}
|
|
|
// 解码
|
|
@@ -332,7 +334,10 @@
|
|
|
},
|
|
|
methods: {
|
|
|
searchStrChange() {
|
|
|
- location.href = requestUtil.buildUrl(location.href, {'queryStr': this.searchStr})
|
|
|
+ let queryStr = this.searchStr;
|
|
|
+ // url编码
|
|
|
+ queryStr = encodeURI(queryStr);
|
|
|
+ location.href = requestUtil.buildUrl(location.href, {'queryStr': queryStr})
|
|
|
},
|
|
|
duoxuanChange() {
|
|
|
if (this.duoxuan) {
|