feat: 前端搭建

This commit is contained in:
Gsh
2025-06-17 22:37:37 +08:00
parent 4830be6388
commit 0cd795f57a
1228 changed files with 23627 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
<script setup lang="ts">
import { useRoute } from 'vue-router';
import ChatDefaul from '@/pages/chat/layouts/chatDefaul/index.vue';
import ChatWithId from '@/pages/chat/layouts/chatWithId/index.vue';
const route = useRoute();
const sessionId = computed(() => route.params?.id);
</script>
<template>
<div class="chat-container">
<!-- 默认聊天页面 -->
<ChatDefaul v-if="!sessionId" />
<!-- 带id的聊天页面 -->
<ChatWithId v-else />
</div>
</template>
<style lang="scss" scoped>
.chat-container {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: calc(100% - 32px);
height: 100%;
padding: 0 16px;
overflow-anchor: none;
}
</style>