This commit is contained in:
hrx 2025-10-27 17:01:35 +08:00
parent 9561a142d9
commit e0f5a7c06b
2 changed files with 7 additions and 9 deletions

View File

@ -1,10 +1,8 @@
.DS_Store .DS_Store
node_modules/ node_modules/
dist/ dist/
<<<<<<< HEAD
======= =======
# src/ # src/
>>>>>>> a3d0bd5845e8b37373bf85c7c40401a7c67884b9
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*

View File

@ -2,8 +2,8 @@
<div <div
style="display: flex;align-items: center;justify-content: center;width: 100%;max-width: 1400px;"> style="display: flex;align-items: center;justify-content: center;width: 100%;max-width: 1400px;">
<img @click="goHome" class="logo-clickable" style="width: 200px;height: 60px;padding-right: 20px;" <!-- <img @click="goHome" class="logo-clickable" style="width: 200px;height: 60px;padding-right: 20px;"
src="https://www.opencomputing.cn/idfile?path=logo_ncmatch.png" alt=""> src="https://www.opencomputing.cn/idfile?path=logo_ncmatch.png" alt=""> -->
<div <div
style="min-width:800px;display: flex;align-items: center;justify-content: space-between;"> style="min-width:800px;display: flex;align-items: center;justify-content: space-between;">
@ -24,7 +24,7 @@
<!-- 实时搜索结果 --> <!-- 实时搜索结果 -->
<div v-if="showSearchResults && searchResults.length > 0" class="search-results" @click.stop> <div v-if="showSearchResults && searchResults.length > 0" class="search-results" @click.stop>
<div v-for="result in searchResults" :key="result.id" class="search-result-item" <div v-for="result in searchResults" :key="result.id" class="search-result-item"
@click.stop.prevent="handleSearch(result)" @click.stop.prevent="handleSearch(result)"
@mousedown.stop.prevent @mousedown.stop.prevent
@mouseup.stop.prevent @mouseup.stop.prevent
style="cursor: pointer; padding: 10px"> style="cursor: pointer; padding: 10px">
@ -34,7 +34,7 @@
<!-- 热搜关键词 --> <!-- 热搜关键词 -->
<div v-if="false" class="hot-search"> <div v-if="false" class="hot-search">
<a v-for="keyword in hotSearchKeywords" :key="keyword" href="#" class="hot-keyword" <a v-for="keyword in hotSearchKeywords" :key="keyword" href="#" class="hot-keyword"
@click="handleHotKeywordClick(keyword)"> @click="handleHotKeywordClick(keyword)">
{{ keyword }} {{ keyword }}
@ -330,7 +330,7 @@ export default {
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
} }
console.log('=== handleSearch 开始执行 ==='); console.log('=== handleSearch 开始执行 ===');
console.log('接收到的参数:', result); console.log('接收到的参数:', result);
console.log('当前路由路径:', this.$route.path); console.log('当前路由路径:', this.$route.path);
@ -418,7 +418,7 @@ export default {
console.log('点击在搜索组件内部,不隐藏联想结果'); console.log('点击在搜索组件内部,不隐藏联想结果');
return; return;
} }
// //
if (this.showSearchResults) { if (this.showSearchResults) {
console.log('点击在搜索组件外部,隐藏联想结果'); console.log('点击在搜索组件外部,隐藏联想结果');
@ -707,4 +707,4 @@ export default {
width: 100%; width: 100%;
} }
} }
</style> </style>