Commit f048d8e 1 parent c1ed033 commit f048d8e Copy full SHA for f048d8e
File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const props = defineProps<{
8
8
order: string
9
9
visibleSite: number
10
10
total: number
11
+ isAdmin: boolean
11
12
}>()
12
13
const emit = defineEmits <{
13
14
(event : ' update:total' , value : boolean ): void
@@ -105,6 +106,7 @@ function updateVisibleSite(visible_site: number) {
105
106
<VideoList
106
107
:videos =" resultVideo.videos"
107
108
:count =" limit"
109
+ :is-admin =" isAdmin"
108
110
@refresh =" refreshListVideo"
109
111
/>
110
112
</div >
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ definePageMeta({
12
12
const route = useRoute ()
13
13
const { t } = useI18n ()
14
14
15
+ const auth = await useAuth ()
16
+
15
17
const Types = [
16
18
{
17
19
value: ' video' ,
@@ -83,6 +85,7 @@ function updateType(type: string) {
83
85
:query-word =" queryWord"
84
86
:order =" order.value"
85
87
:visible-site =" visibleSite"
88
+ :is-admin =" auth.isAdmin"
86
89
/>
87
90
<PlaylistSearchResult
88
91
v-else
You can’t perform that action at this time.
0 commit comments