|
|
@@ -483,15 +483,9 @@ const sendAction = async (action: string) => {
|
|
|
isGenerate: false
|
|
|
}
|
|
|
let isHave = 1
|
|
|
- for (let i = 0; i < slidesStore.slides.length; i++) {
|
|
|
- const slide = slidesStore.slides[i]
|
|
|
- if (slide.toolsArray && slide.toolsArray.length > 0) {
|
|
|
- const hasUnprocessed = slide.toolsArray.length
|
|
|
- if (hasUnprocessed) {
|
|
|
- isHave = 2
|
|
|
- break
|
|
|
- }
|
|
|
- }
|
|
|
+ const hasUnprocessedTools = slidesStore.slides.some(slide => slide.toolsArray && slide.toolsArray?.length > 0)
|
|
|
+ if (hasUnprocessedTools) {
|
|
|
+ isHave = 2
|
|
|
}
|
|
|
if (isHave == 2) {
|
|
|
messages.value.at(-1).aiContent = lang.ssBatchInteractiveWebDesc3
|
|
|
@@ -538,15 +532,9 @@ const sendAction = async (action: string) => {
|
|
|
isGenerate: false
|
|
|
}
|
|
|
let isHave = 1
|
|
|
- for (let i = 0; i < slidesStore.slides.length; i++) {
|
|
|
- const slide = slidesStore.slides[i]
|
|
|
- if (slide.toolsArray && slide.toolsArray.length > 0) {
|
|
|
- const hasUnprocessed = slide.toolsArray.length
|
|
|
- if (hasUnprocessed) {
|
|
|
- isHave = 2
|
|
|
- break
|
|
|
- }
|
|
|
- }
|
|
|
+ const hasUnprocessedTools = slidesStore.slides.some(slide => slide.toolsArray && slide.toolsArray?.length > 0)
|
|
|
+ if (hasUnprocessedTools) {
|
|
|
+ isHave = 2
|
|
|
}
|
|
|
if (isHave == 2) {
|
|
|
messages.value.at(-1).aiContent = lang.ssBatchInteractiveWebDesc3
|