2026-04-11 15:59:14 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { onMounted } from 'vue'
|
|
|
|
|
import ChatPanel from '@/components/chat/ChatPanel.vue'
|
|
|
|
|
import { useAppStore } from '@/stores/app'
|
2026-04-11 21:33:04 +08:00
|
|
|
import { useChatStore } from '@/stores/chat'
|
2026-04-11 15:59:14 +08:00
|
|
|
|
|
|
|
|
const appStore = useAppStore()
|
2026-04-11 21:33:04 +08:00
|
|
|
const chatStore = useChatStore()
|
2026-04-11 15:59:14 +08:00
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
appStore.loadModels()
|
2026-04-11 21:33:04 +08:00
|
|
|
chatStore.loadSessions()
|
2026-04-11 15:59:14 +08:00
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class="chat-view">
|
|
|
|
|
<ChatPanel />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.chat-view {
|
|
|
|
|
height: 100vh;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
</style>
|