2026-04-11 15:59:14 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { onMounted } from 'vue'
|
2026-04-16 08:38:18 +08:00
|
|
|
import ChatPanel from '@/components/hermes/chat/ChatPanel.vue'
|
|
|
|
|
import { useAppStore } from '@/stores/hermes/app'
|
|
|
|
|
import { useChatStore } from '@/stores/hermes/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 {
|
2026-04-15 10:28:53 +08:00
|
|
|
height: calc(100 * var(--vh));
|
2026-04-11 15:59:14 +08:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
</style>
|