diff --git a/src/components/SearchOption/index.vue b/src/components/SearchOption/index.vue index 1d9e7b8..29312cf 100644 --- a/src/components/SearchOption/index.vue +++ b/src/components/SearchOption/index.vue @@ -3,7 +3,7 @@
- 搜索: + 搜索 {{searchScope}}: {{ keyword }}
@@ -122,7 +122,7 @@
-
+
路径: {{ searchPath }} @@ -210,6 +210,14 @@ export default { } }, computed: { + searchScope() { + const queryTagId = this.$route.query.tagId + const path = this.$route.query.path; + if (queryTagId && path === '/') { + return '(当前标签)' + } + return '' + }, hasSearchConditions() { return this.fileType !== 'all' || this.timeRange || this.hasSizeRange || this.searchMount || this.searchOverall }, @@ -255,7 +263,6 @@ export default { }, watch: { filterOption(newValue) { - console.log('filterOption changed', newValue) } }, methods: { @@ -279,7 +286,6 @@ export default { clearFilterOption() { this.filterOption = this.emptyFilterOption - console.log('clearFilterOption') this.setFilterOption(this.filterOption) }, @@ -311,7 +317,6 @@ export default { this.searchOverall = !!filterOption.searchOverall // 更新过滤条件 - console.log('setFilterOption') this.updateFilterOption() }, diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index ecd540b..68e568b 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -90,7 +90,7 @@
{ this.searchHistoryList = res.data || [] - console.log('clearSearchHistory1', this.searchHistoryList) cb(this.searchHistoryList) }).catch(error => { console.error("Error fetching search history:", error)