diff --git a/src/components/cards/SiteCard.vue b/src/components/cards/SiteCard.vue
index c02fabf4..91b6cedf 100644
--- a/src/components/cards/SiteCard.vue
+++ b/src/components/cards/SiteCard.vue
@@ -194,7 +194,7 @@ onMounted(() => {
-
+
{{ cardProps.site?.name }}
@@ -202,10 +202,10 @@ onMounted(() => {
{{ cardProps.site?.url }}
-
-
+
+
-
+
@@ -213,9 +213,9 @@ onMounted(() => {
-
+
-
+
diff --git a/src/views/reorganize/TransferHistoryView.vue b/src/views/reorganize/TransferHistoryView.vue
index 12e35e22..232ecc18 100644
--- a/src/views/reorganize/TransferHistoryView.vue
+++ b/src/views/reorganize/TransferHistoryView.vue
@@ -6,10 +6,15 @@ import api from '@/api'
import type { TransferHistory } from '@/api/types'
import ReorganizeDialog from '@/components/dialog/ReorganizeDialog.vue'
import ProgressDialog from '@/components/dialog/ProgressDialog.vue'
+import { useRoute } from 'vue-router'
+import router from '@/router'
// 提示框
const $toast = useToast()
+// 路由
+const route = useRoute()
+
// 重新整理对话框
const redoDialog = ref(false)
@@ -70,6 +75,8 @@ const dataList = ref([])
// 搜索
const search = ref()
+// 路由中有搜索参数时放到搜索框中
+if (route.query.search) search.value = route.query.search
// 搜索提示词列表
const searchHintList = ref([])
@@ -131,6 +138,8 @@ const totalPage = computed(() => {
watch(
[() => currentPage.value, () => itemsPerPage.value, () => search.value],
debounce(async () => {
+ // 清除路由参数
+ if (route.query.search) router.push("/history")
await fetchData()
}, 1000),
)
diff --git a/src/views/system/SearchBarView.vue b/src/views/system/SearchBarView.vue
index 1fe36032..d8dbd666 100644
--- a/src/views/system/SearchBarView.vue
+++ b/src/views/system/SearchBarView.vue
@@ -166,6 +166,18 @@ function searchTorrent() {
emit('close')
}
+// 跳转到历史记录页面
+function searchHistory() {
+ if (!searchWord.value) return
+ router.push({
+ path: '/history',
+ query: {
+ search: searchWord.value
+ },
+ })
+ emit('close')
+}
+
// 跳转插件页面
function showPlugin(pluginId: string) {
router.push({
@@ -290,6 +302,24 @@ onMounted(() => {
+
+
+
+
+ 搜索 {{ searchWord }} 相关的【历史记录】 ...
+
+
+
+
+
+
+
订阅