|
|
@@ -219,7 +219,7 @@
|
|
|
/>
|
|
|
</template>
|
|
|
<template #content>
|
|
|
- <a-spin :loading="onFileSelectedLoading" dot>
|
|
|
+ <a-spin :loading="loading" dot style="width: 100%">
|
|
|
<a-textarea
|
|
|
readonly
|
|
|
auto-size
|
|
|
@@ -596,6 +596,7 @@
|
|
|
id: agentObj.id,
|
|
|
}),
|
|
|
});
|
|
|
+ refreshScroll();
|
|
|
|
|
|
const reader = response?.body
|
|
|
?.pipeThrough(new TextDecoderStream())
|
|
|
@@ -612,7 +613,11 @@
|
|
|
const d = val?.data;
|
|
|
if (typeof d !== 'boolean') {
|
|
|
console.info('data:', d);
|
|
|
- streamStr.value = d.content;
|
|
|
+ if (d?.content) {
|
|
|
+ streamStr.value = d.content;
|
|
|
+ } else {
|
|
|
+ streamStr.value = d.code + d.sql;
|
|
|
+ }
|
|
|
startDisplayStr();
|
|
|
}
|
|
|
} catch (e) {
|
|
|
@@ -963,7 +968,13 @@
|
|
|
|
|
|
if (typeof d !== 'boolean') {
|
|
|
console.info('data:', d);
|
|
|
- streamStr.value = d.content;
|
|
|
+
|
|
|
+ if (d?.content) {
|
|
|
+ streamStr.value = d.content;
|
|
|
+ } else {
|
|
|
+ streamStr.value = d.code;
|
|
|
+ }
|
|
|
+
|
|
|
startDisplayStr();
|
|
|
}
|
|
|
} catch (e) {
|
|
|
@@ -1044,6 +1055,7 @@
|
|
|
if (timer) {
|
|
|
clearTimeout(timer!);
|
|
|
}
|
|
|
+
|
|
|
const res = streamStr.value;
|
|
|
// 将数组中的字符串拼接起来
|
|
|
|