fix search

This commit is contained in:
jxxghp
2023-08-10 08:12:11 +08:00
parent 497e0c6592
commit c9628379cf
3 changed files with 9 additions and 5 deletions
+4 -1
View File
@@ -10,6 +10,9 @@ import avatar1 from '@images/avatars/avatar-1.png'
const { global: globalTheme } = useTheme() const { global: globalTheme } = useTheme()
globalTheme.name.value = localStorage.getItem('theme') || 'light' globalTheme.name.value = localStorage.getItem('theme') || 'light'
// 路由
const route = useRoute()
// 提示框 // 提示框
const $toast = useToast() const $toast = useToast()
@@ -70,6 +73,6 @@ provide('accountInfo', accountInfo)
<template> <template>
<VApp> <VApp>
<RouterView /> <RouterView :key="route.fullPath + route.query" />
</VApp> </VApp>
</template> </template>
+2 -1
View File
@@ -19,6 +19,7 @@ function search() {
query: { query: {
title: searchWord.value, title: searchWord.value,
}, },
force: true,
}) })
} }
</script> </script>
@@ -27,7 +28,7 @@ function search() {
<!-- 👉 Search Button --> <!-- 👉 Search Button -->
<div <div
class="d-flex align-center cursor-pointer" class="d-flex align-center cursor-pointer"
style="user-select: none" style="user-select: none;"
> >
<VDialog <VDialog
v-model="searchDialog" v-model="searchDialog"
+3 -3
View File
@@ -154,9 +154,9 @@ async function fetchData({ done }: { done: any }) {
</div> </div>
<NoDataFound <NoDataFound
v-if="dataList.length === 0 && isRefreshed" v-if="dataList.length === 0 && isRefreshed"
error-code="500" error-code="404"
error-title="出错啦" error-title="没有数据"
error-description="无法获取到媒体信息请检查网络连接" error-description="无法获取到TMDB媒体信息"
/> />
</VInfiniteScroll> </VInfiniteScroll>
</template> </template>