mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-10-06 14:13:10 +08:00
跳转搜索结果时对关键词做encodeURIComponent处理,避免关键词里有某些特殊字符时,把跳转参数截断
This commit is contained in:
@@ -141,7 +141,7 @@ const toSearchProdPage = () => {
|
||||
}
|
||||
uni.setStorageSync('recentSearch', recentSearchStorage) // 跳转到商品列表页
|
||||
uni.navigateTo({
|
||||
url: '/pages/search-prod-show/search-prod-show?prodName=' + keyword
|
||||
url: '/pages/search-prod-show/search-prod-show?prodName=' + encodeURIComponent(keyword)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user