fix
This commit is contained in:
@@ -166,14 +166,12 @@ export const useAIStore = defineStore("ai", () => {
|
|||||||
if (!pinnedReport.value) return
|
if (!pinnedReport.value) return
|
||||||
const text = pinnedReport.value.analysis
|
const text = pinnedReport.value.analysis
|
||||||
mdContent.value = ""
|
mdContent.value = ""
|
||||||
loading.ai = true
|
|
||||||
const CHUNK = 6
|
const CHUNK = 6
|
||||||
const DELAY = 18
|
const DELAY = 18
|
||||||
await new Promise<void>((resolve) => {
|
await new Promise<void>((resolve) => {
|
||||||
let i = 0
|
let i = 0
|
||||||
function step() {
|
function step() {
|
||||||
if (i >= text.length) {
|
if (i >= text.length) {
|
||||||
loading.ai = false
|
|
||||||
resolve()
|
resolve()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user