Merge branch 'main' of http://18.167.251.121:10003/aidlab/FiDA_Front
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="my-textTools">
|
||||
<input class="color" type="color" ref="colorInput" @change="changeColor" />
|
||||
<input class="color" type="color" v-model="textStyle['--font-color']" ref="colorInput" @change="changeColor" />
|
||||
<div class="interval"></div>
|
||||
<div class="fontFamily">
|
||||
<my-select v-model="textStyle['--font-family']" @change="changeFontFamily" :list="fontFamilyList[locale]" >
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
const isGenerating = ref(false)
|
||||
const isPaused = ref(false) // 标记是否为主动暂停
|
||||
const params = reactive<AgentParamsType>({
|
||||
projectID: projectStore.state.id,
|
||||
projectID: null,
|
||||
message: '',
|
||||
token: userStore.state.token,
|
||||
versionID: '',
|
||||
@@ -170,13 +170,16 @@
|
||||
const abortController = createAbortController()
|
||||
|
||||
// console.log('token---', params.token, '参数---', params)
|
||||
|
||||
params.projectID = projectStore.state.id
|
||||
try {
|
||||
const urlParams = new URLSearchParams<AgentParamsType>({
|
||||
...params,
|
||||
configParams: JSON.stringify(params.configParams)
|
||||
})
|
||||
const BASEURL = import.meta.env.VITE_APP_URL
|
||||
// console.log('params', params)
|
||||
|
||||
// debugger
|
||||
const response = await fetch(`${BASEURL}${chatUrl}?${urlParams.toString()}`, {
|
||||
method: 'GET',
|
||||
signal: abortController.signal
|
||||
@@ -609,11 +612,6 @@
|
||||
return
|
||||
}
|
||||
const { ancestors, current } = data
|
||||
current.dialogue.forEach((item) => {
|
||||
if (item.webAddress) {
|
||||
console.log(item)
|
||||
}
|
||||
})
|
||||
|
||||
const imgList = []
|
||||
const ancestorsList = []
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<img
|
||||
:src="image.url || image"
|
||||
class="preview-image"
|
||||
@click="previewImage(image.url)"
|
||||
@click="previewImage(image.url || image)"
|
||||
/>
|
||||
<div class="image-remove-btn" @click="removeImage(index, image)">
|
||||
<SvgIcon name="delete" size="16" />
|
||||
@@ -824,7 +824,7 @@
|
||||
const handleQuote = (url: string) => {
|
||||
const hasQuoted = quoteList.value.includes(url)
|
||||
if (hasQuoted) return
|
||||
quoteList.value.push(url)
|
||||
quoteList.value[0] = url
|
||||
}
|
||||
onUnmounted(() => {
|
||||
MyEvent.remove('quote', handleQuote)
|
||||
@@ -1066,10 +1066,11 @@
|
||||
width: 13rem;
|
||||
color: #fff;
|
||||
border-radius: 4.2rem;
|
||||
font-family: 'MSemiBold';
|
||||
font-family: 'SemiBold';
|
||||
font-weight: 600;
|
||||
font-size: 1.28rem;
|
||||
font-size: 1.3rem;
|
||||
cursor: pointer;
|
||||
column-gap: 0.3rem;
|
||||
.shining-icon {
|
||||
width: 1.4rem;
|
||||
height: 1.4rem;
|
||||
|
||||
Reference in New Issue
Block a user