Commit 06f580d2 authored by 吴春's avatar 吴春

1

parent c997b6dc
......@@ -328,7 +328,7 @@ export default {
created() {
},
mounted() {
this.isSearch = this.$router.history.current.path === "/search";
this.isSearch = this.$router.history.current.path === "/search"||this.$router.history.current.path === "/searchProduct";
this.initAreaList()
var jObj = JSON.parse(window.localStorage.getItem('baseifo'));
const hotList = this.getHotList(jObj.AreaList)
......@@ -502,8 +502,12 @@ export default {
this.historys=Array.from(new Set([this.searchKey].concat(this.historys)))
localStorage['recent_search'] = JSON.stringify(this.historys)
}
this.CommonJump("/search", {
var currentUrl = window.location.href;
let urlName="/search";
if(currentUrl.includes('/#/searchProduct')){
urlName="/searchProduct";
}
this.CommonJump(urlName, {
qsearchKey: this.searchKey,
areaIds: this.areaTicked.join(','),
qsearchDate: this.searchDate,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment