wip
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import ModalAuthentication from '~/components/ModalAuthentication.vue';
|
||||
import ModalAuthentication from '~/components/ModalAuthentication.vue'
|
||||
|
||||
const colorMode = useColorMode()
|
||||
const dayjs = useDayjs()
|
||||
const modal = useModal()
|
||||
const toast = useToast()
|
||||
const route = useRoute()
|
||||
const loginState = useLoginState()
|
||||
|
||||
const isDark = computed({
|
||||
@@ -16,7 +17,7 @@ const isDark = computed({
|
||||
},
|
||||
})
|
||||
|
||||
const links = [
|
||||
const links = ref([
|
||||
{
|
||||
label: '绘画',
|
||||
icon: 'i-tabler-brush',
|
||||
@@ -26,11 +27,11 @@ const links = [
|
||||
icon: 'i-tabler-message-2',
|
||||
to: '/aigc/chat',
|
||||
}, {
|
||||
label: 'PPT',
|
||||
label: '智能生成',
|
||||
icon: 'i-tabler-file-type-ppt',
|
||||
to: '/aigc/ppt-course-gen',
|
||||
to: '/aigc/generation',
|
||||
},
|
||||
]
|
||||
])
|
||||
|
||||
const items = [
|
||||
[{
|
||||
@@ -70,11 +71,11 @@ const open_login_modal = () => {
|
||||
<div class="flex flex-row items-center gap-4">
|
||||
<ClientOnly>
|
||||
<UButton
|
||||
:icon="isDark ? 'i-line-md-sunny-outline-to-moon-alt-loop-transition' : 'i-line-md-moon-alt-to-sunny-outline-loop-transition'"
|
||||
color="gray"
|
||||
variant="ghost"
|
||||
aria-label="Theme"
|
||||
@click="isDark = !isDark"
|
||||
:icon="isDark ? 'i-line-md-sunny-outline-to-moon-alt-loop-transition' : 'i-line-md-moon-alt-to-sunny-outline-loop-transition'"
|
||||
color="gray"
|
||||
variant="ghost"
|
||||
aria-label="Theme"
|
||||
@click="isDark = !isDark"
|
||||
/>
|
||||
<UButton v-if="!loginState.is_logged_in" label="登录或注册" size="xs" class="font-bold" color="indigo"
|
||||
@click="open_login_modal"/>
|
||||
@@ -136,6 +137,7 @@ body {
|
||||
background-clip: content-box;
|
||||
border: 1px solid transparent
|
||||
}
|
||||
|
||||
/*
|
||||
*::-webkit-scrollbar {
|
||||
@apply w-1.5 h-1.5;
|
||||
|
||||
Reference in New Issue
Block a user