Skip to content

Commit 5fd8177

Browse files
committed
【修改todo】Loading组件 改为 @芋艿
1 parent fda50ff commit 5fd8177

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/views/ai/image/ImageTaskCard.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
import {Delete, Download, More, RefreshRight} from '@element-plus/icons-vue'
6565
import { ImageVO, ImageMjButtonsVO } from '@/api/ai/image'
6666
import { PropType } from 'vue'
67-
import { ElLoading } from 'element-plus'
67+
import {ElLoading, LoadingOptionsResolved} from 'element-plus'
6868
import { AiImageStatusEnum } from '@/views/ai/utils/constants'
6969
7070
const cardImageRef = ref<any>() // 卡片 image ref
@@ -83,12 +83,12 @@ const handleBtnClick = async (type, imageDetail: ImageVO) => {
8383
}
8484
8585
const handleLoading = async (status: number) => {
86-
// TODO @fan:这个搞成 Loading 组件,然后通过数据驱动,这样搞可以哇?
86+
// TODO @芋艿:这个搞成 Loading 组件,然后通过数据驱动,这样搞可以哇?
8787
if (status === AiImageStatusEnum.IN_PROGRESS) {
8888
cardImageLoadingInstance.value = ElLoading.service({
8989
target: cardImageRef.value,
9090
text: '生成中...'
91-
})
91+
} as LoadingOptionsResolved)
9292
} else {
9393
if (cardImageLoadingInstance.value) {
9494
cardImageLoadingInstance.value.close()

0 commit comments

Comments
 (0)