main #34
2
f/web-kboss/.gitignore
vendored
2
f/web-kboss/.gitignore
vendored
@ -1,10 +1,8 @@
|
||||
.DS_Store
|
||||
node_modules/
|
||||
dist/
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
# src/
|
||||
>>>>>>> a3d0bd5845e8b37373bf85c7c40401a7c67884b9
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
<div
|
||||
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;"
|
||||
src="https://www.opencomputing.cn/idfile?path=logo_ncmatch.png" alt="">
|
||||
<!-- <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=""> -->
|
||||
<div
|
||||
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-for="result in searchResults" :key="result.id" class="search-result-item"
|
||||
@click.stop.prevent="handleSearch(result)"
|
||||
@click.stop.prevent="handleSearch(result)"
|
||||
@mousedown.stop.prevent
|
||||
@mouseup.stop.prevent
|
||||
style="cursor: pointer; padding: 10px">
|
||||
@ -34,7 +34,7 @@
|
||||
|
||||
<!-- 热搜关键词 -->
|
||||
<div v-if="false" class="hot-search">
|
||||
|
||||
|
||||
<a v-for="keyword in hotSearchKeywords" :key="keyword" href="#" class="hot-keyword"
|
||||
@click="handleHotKeywordClick(keyword)">
|
||||
{{ keyword }}
|
||||
@ -330,7 +330,7 @@ export default {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
|
||||
console.log('=== handleSearch 开始执行 ===');
|
||||
console.log('接收到的参数:', result);
|
||||
console.log('当前路由路径:', this.$route.path);
|
||||
@ -418,7 +418,7 @@ export default {
|
||||
console.log('点击在搜索组件内部,不隐藏联想结果');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// 如果联想结果正在显示,则隐藏
|
||||
if (this.showSearchResults) {
|
||||
console.log('点击在搜索组件外部,隐藏联想结果');
|
||||
@ -707,4 +707,4 @@ export default {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user