bugfix: 引用图片预览&projectID传值
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user