master
parent
6c6828f693
commit
2d7b998c86
|
|
@ -101,7 +101,7 @@ html {
|
||||||
color: var(--color-fg-default);
|
color: var(--color-fg-default);
|
||||||
background-color: var(--color-canvas-default);
|
background-color: var(--color-canvas-default);
|
||||||
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
|
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
|
||||||
font-size: 16px;
|
font-size: 16Px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,7 @@ onMounted(() => {
|
||||||
height: 60px;
|
height: 60px;
|
||||||
border: 1px solid white;
|
border: 1px solid white;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
z-index: 99;
|
||||||
&::after{
|
&::after{
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
color: white;
|
color: white;
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
<div class="text-center" v-if="contentLoading">
|
<div class="text-center" v-if="contentLoading">
|
||||||
<van-loading type="spinner" size="24"/>
|
<van-loading type="spinner" size="24"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-white" v-else>
|
<div class="text-white opacity-40" v-else>
|
||||||
<TextComponent class="cu-text" :text="contenText" :inversion="false"></TextComponent>
|
<TextComponent class="cu-text" :text="contenText" :inversion="false"></TextComponent>
|
||||||
<!-- {{ contenText }} -->
|
<!-- {{ contenText }} -->
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
ref="messageRef"
|
ref="messageRef"
|
||||||
class="flex w-full overflow-hidden"
|
class="flex w-full"
|
||||||
:class="[{ 'flex-row-reverse': inversion }]"
|
:class="[{ 'flex-row-reverse': inversion }]"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<AvatarComponent :inversion="inversion" />
|
<AvatarComponent :inversion="inversion" />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="overflow-hidden text-22px"
|
class="overflow-hidden text-26px"
|
||||||
:class="[inversion ? 'items-end' : 'items-start']"
|
:class="[inversion ? 'items-end' : 'items-start']"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
.markdown-body {
|
.markdown-body {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
font-size: 14px;
|
font-size: 26px;
|
||||||
|
color: white;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
|
|
|
||||||
|
|
@ -260,6 +260,7 @@ function handleSubmit() {
|
||||||
|
|
||||||
async function onConversation(action = 'next', file, fileText) {
|
async function onConversation(action = 'next', file, fileText) {
|
||||||
let message = inputValue.value || fileText
|
let message = inputValue.value || fileText
|
||||||
|
|
||||||
if (loading.value) return
|
if (loading.value) return
|
||||||
if (!isLogin) {
|
if (!isLogin) {
|
||||||
authModal.setAuthModalType('login')
|
authModal.setAuthModalType('login')
|
||||||
|
|
@ -269,6 +270,8 @@ async function onConversation(action = 'next', file, fileText) {
|
||||||
|
|
||||||
if ((!message || message.trim() === '') && action == 'next') return
|
if ((!message || message.trim() === '') && action == 'next') return
|
||||||
|
|
||||||
|
controller = new AbortController()
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
action: action,
|
action: action,
|
||||||
conversation_id: chatStore.active,
|
conversation_id: chatStore.active,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue