fix
This commit is contained in:
@@ -161,7 +161,6 @@ export default defineComponent({
|
||||
}
|
||||
emit('chatChange',{type:JSON.parse(event.data).status})
|
||||
}
|
||||
|
||||
};
|
||||
eventSource.onerror = function(error) {
|
||||
if (eventSource.readyState === EventSource.CLOSED) {
|
||||
@@ -195,7 +194,7 @@ export default defineComponent({
|
||||
}else{
|
||||
let think = ''
|
||||
let message = ''
|
||||
if(text.split('[TEXT]').length > 1){
|
||||
if(text.split('[TEXT]').length > 1 && text.split('[THINK]').length > 1){
|
||||
think = text.split('[TEXT]')[0]
|
||||
text.split('[TEXT]').forEach((text:any,index:number) => {
|
||||
if(index == 0)return
|
||||
|
||||
Reference in New Issue
Block a user