mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 00:36:41 +08:00
fix search
This commit is contained in:
+4
-1
@@ -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>
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user