This commit is contained in:
expdsn 2024-11-21 11:32:49 +08:00
parent 975dafef7c
commit 3a2d4a18e8
3 changed files with 4 additions and 5 deletions

View File

@ -12,11 +12,10 @@ export default defineComponent(() => {
const router = useRouterStore()
const { profile } = useUserStore()
const layout = useLayoutStore()
const inputRef = ref<any>()
const isGame = computed(() => {
return layout.state.current === 0
})
const list = Array.from({ length: 9 }).map((_, index) => `${ossBase}/admin/${index + 1}.png`)
const list = Array.from({ length: 10 }).map((_, index) => `${ossBase}/admin/${index + 1}.png`)
const selectUrl = ref(profile.avatar)
const customHeader = ref(profile.avatar)

View File

@ -31,7 +31,7 @@ export default defineComponent(() => {
}
>
<div class="flex flex-col w-full h-full justify-center gap-y-2 py-2 px-3">
<span class="text-white text-[14px]">{selectItem.value.name}</span>
<span class="text-white text-[14px]">{selectItem.value?.name}</span>
<div>
<span
class={

View File

@ -83,13 +83,13 @@ export default defineComponent(() => {
>
<img src={item.icon} alt="game icon" class={'w-[37px] h-[37px] rounded'}></img>
<div class={'flex-1 flex flex-col overflow-hidden'}>
<span class={'text-white text-[14px]'}>{item.name}</span>
<span class={'text-white text-[14px]'}>{item?.name}</span>
<span
class={
'text-[#fff9] text-[12px] whitespace-nowrap text-ellipsis overflow-hidden'
}
>
{item.des}
{item?.des}
</span>
</div>
</div>