fix: 修复错误
This commit is contained in:
parent
c49c10de3d
commit
36f477ddf7
@ -1,45 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="chat" v-loading="loading">
|
<div class="chat" v-loading="loading">
|
||||||
<div class="chat__header">
|
<div class="chat__header">
|
||||||
<h4 class="ml-24">{{ applicationDetail?.name }}</h4>
|
<div class="chat-width">
|
||||||
</div>
|
<h2 class="ml-24">{{ applicationDetail?.name }}</h2>
|
||||||
<div class="flex">
|
|
||||||
<div class="chat__left">
|
|
||||||
<div class="p-24 pb-0">
|
|
||||||
<el-button class="add-button w-full primary">
|
|
||||||
<el-icon><Plus /></el-icon><span class="ml-4">新建对话</span>
|
|
||||||
</el-button>
|
|
||||||
<p class="mt-20 mb-8">历史记录</p>
|
|
||||||
</div>
|
|
||||||
<div class="chat-list-height pt-0">
|
|
||||||
<el-scrollbar>
|
|
||||||
<div class="p-8 pt-0">
|
|
||||||
<common-list
|
|
||||||
:data="chatLogeData"
|
|
||||||
class="mt-8"
|
|
||||||
v-loading="loading"
|
|
||||||
@click="clickMemberHandle"
|
|
||||||
>
|
|
||||||
<template #default="{ row }">
|
|
||||||
<auto-tooltip :content="row.abstract">
|
|
||||||
{{ row.abstract }}
|
|
||||||
</auto-tooltip>
|
|
||||||
</template>
|
|
||||||
</common-list>
|
|
||||||
</div>
|
|
||||||
<div class="gradient-divider lighter mt-8"><span>仅显示最近 20 条对话</span></div>
|
|
||||||
</el-scrollbar>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="chat__right w-full">
|
|
||||||
<AiChat
|
|
||||||
v-model:data="applicationDetail"
|
|
||||||
:available="applicationAvailable"
|
|
||||||
:appId="applicationDetail?.id"
|
|
||||||
></AiChat>
|
|
||||||
</div>
|
|
||||||
<div class="chat__footer"></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="chat__main chat-width">
|
||||||
|
<AiChat
|
||||||
|
v-model:data="applicationDetail"
|
||||||
|
:available="applicationAvailable"
|
||||||
|
:appId="applicationDetail?.id"
|
||||||
|
></AiChat>
|
||||||
|
</div>
|
||||||
|
<div class="chat__footer"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@ -74,7 +47,6 @@ function getProfile() {
|
|||||||
.getProfile(loading)
|
.getProfile(loading)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
applicationDetail.value = res.data
|
applicationDetail.value = res.data
|
||||||
getChatLog(applicationDetail.value.id)
|
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
applicationAvailable.value = false
|
applicationAvailable.value = false
|
||||||
@ -116,32 +88,19 @@ onMounted(() => {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-bottom: 1px solid var(--el-border-color);
|
border-bottom: 1px solid var(--el-border-color);
|
||||||
}
|
}
|
||||||
&__left {
|
&__main {
|
||||||
padding-top: calc(var(--app-header-height) - 8px);
|
|
||||||
|
|
||||||
background: #ffffff;
|
|
||||||
width: 280px;
|
|
||||||
.add-button {
|
|
||||||
border: 1px solid var(--el-color-primary);
|
|
||||||
}
|
|
||||||
.chat-list-height {
|
|
||||||
height: calc(100vh - var(--app-header-height) - 160px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&__right {
|
|
||||||
width: calc(100% - 280px);
|
|
||||||
padding-top: calc(var(--app-header-height) + 24px);
|
padding-top: calc(var(--app-header-height) + 24px);
|
||||||
height: calc(100vh - var(--app-header-height) - 30px);
|
height: calc(100vh - var(--app-header-height) - 24px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__footer {
|
&__footer {
|
||||||
background: #f3f7f9;
|
background: #f3f7f9;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 280px;
|
left: 0;
|
||||||
width: calc(100% - 280px);
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: 8px !important;
|
border-radius: 8px !important;
|
||||||
&:before {
|
&:before {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user