fix: empty session page

This commit is contained in:
2024-04-08 17:11:20 +08:00
parent 671755fa0d
commit f178bbca21
2 changed files with 15 additions and 2 deletions

View File

@@ -4,7 +4,12 @@ import {useLazyAsyncData} from '#app'
const loginState = useLoginState()
const props = defineProps()
const props = defineProps({
nonBack: {
type: Boolean,
default: false,
},
})
const emit = defineEmits({
select: (assistant: Assistant | null) => true,
cancel: () => true,
@@ -58,6 +63,7 @@ const {
</Transition>
<div class="w-full p-2">
<UButton
v-if="!nonBack"
variant="ghost"
size="xs"
@click="emit('cancel')"