Skip to content

Commit d7bec4d

Browse files
lint error
1 parent 672c265 commit d7bec4d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

project/web/src/store/plugin/store.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ export const usePluginStore = create(
659659
const { items, platformTaskIdMap, publishTime, onProgress, onComplete } = params
660660

661661
// 创建发布任务
662-
const platformTasks: PlatformPublishTask[] = items.map((item) => {
662+
const platformTasks: any = items.map((item) => {
663663
const platform = item.account.type as PluginPlatformType
664664
const accountId = item.account.id
665665
const requestId = platformTaskIdMap.get(accountId) || ''
@@ -682,7 +682,9 @@ export const usePluginStore = create(
682682
publishParams.cover = item.params.video.cover.ossUrl
683683
}
684684
} else if (item.params.images && item.params.images.length > 0) {
685-
publishParams.images = item.params.images.map(img => img.ossUrl).filter(Boolean)
685+
publishParams.images = item.params.images
686+
.map(img => img.ossUrl)
687+
.filter((url): url is string => typeof url === 'string' && url.length > 0)
686688
}
687689

688690
return {
@@ -691,7 +693,7 @@ export const usePluginStore = create(
691693
accountId,
692694
requestId,
693695
params: publishParams,
694-
status: PlatformTaskStatus.WAITING,
696+
status: PlatformTaskStatus.PENDING,
695697
progress: {
696698
stage: 'waiting',
697699
progress: 0,

0 commit comments

Comments
 (0)