Skip to content

Commit f048d8e

Browse files
committed
chore(search): add isadmin option in research page
1 parent c1ed033 commit f048d8e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

components/video/SearchResult.vue

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const props = defineProps<{
88
order: string
99
visibleSite: number
1010
total: number
11+
isAdmin: boolean
1112
}>()
1213
const emit = defineEmits<{
1314
(event: 'update:total', value: boolean): void
@@ -105,6 +106,7 @@ function updateVisibleSite(visible_site: number) {
105106
<VideoList
106107
:videos="resultVideo.videos"
107108
:count="limit"
109+
:is-admin="isAdmin"
108110
@refresh="refreshListVideo"
109111
/>
110112
</div>

pages/search.vue

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ definePageMeta({
1212
const route = useRoute()
1313
const { t } = useI18n()
1414
15+
const auth = await useAuth()
16+
1517
const Types = [
1618
{
1719
value: 'video',
@@ -83,6 +85,7 @@ function updateType(type: string) {
8385
:query-word="queryWord"
8486
:order="order.value"
8587
:visible-site="visibleSite"
88+
:is-admin="auth.isAdmin"
8689
/>
8790
<PlaylistSearchResult
8891
v-else

0 commit comments

Comments
 (0)