mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-17 16:35:53 +08:00
优化商城端可以重复搜索内容
This commit is contained in:
@@ -71,10 +71,15 @@ export default {
|
|||||||
this.search();
|
this.search();
|
||||||
},
|
},
|
||||||
search () { // 全平台搜索商品
|
search () { // 全平台搜索商品
|
||||||
this.$router.push({
|
const url = this.$route.path;
|
||||||
path: '/goodsList',
|
if(url == '/goodsList'){
|
||||||
query: { keyword: this.searchData }
|
this.$emit('search', this.searchData)
|
||||||
});
|
}else{
|
||||||
|
this.$router.push({
|
||||||
|
path: '/goodsList',
|
||||||
|
query: { keyword: this.searchData }
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
searchStore () { // 店铺搜索商品
|
searchStore () { // 店铺搜索商品
|
||||||
this.$emit('search', this.searchData)
|
this.$emit('search', this.searchData)
|
||||||
|
|||||||
Reference in New Issue
Block a user