修改big

This commit is contained in:
A1300399510
2023-07-31 18:54:53 +08:00
parent 6a195c67e6
commit 943f9d7a06
7 changed files with 33 additions and 22 deletions

View File

@@ -44,7 +44,7 @@
</div>
</div>
</el-popover>
<div class="seach-btn dis-f al-item jus-x" @click="handleKeyword(pitchValue['keyword'])">
<div class="seach-btn dis-f al-item jus-x" @click="pitchValue['keyword'] ? handleKeyword(pitchValue['keyword']) : ''">
<img src="../../assets/homeImage/seachImg.svg" class="img" alt="">
搜索
</div>
@@ -267,9 +267,7 @@ const rentInput = () => clearingAmountState = false
// 点击历史搜索和热门推荐
const handleKeyword = value => {
router.push(`/seachPage?keyword=${value}`)
if (historyArr.value.indexOf(value) == -1 && value) {
historyArr.value.unshift(value)
storingHistory()