【优化】element 转换 LoadingOptionsResolved
This commit is contained in:
parent
bd80a6f34f
commit
918f35f824
@ -29,7 +29,7 @@
|
|||||||
import {ImageApi, ImageDetailVO, ImageMjActionVO, ImageMjButtonsVO} from '@/api/ai/image';
|
import {ImageApi, ImageDetailVO, ImageMjActionVO, ImageMjButtonsVO} from '@/api/ai/image';
|
||||||
import ImageDetailDrawer from './ImageDetailDrawer.vue'
|
import ImageDetailDrawer from './ImageDetailDrawer.vue'
|
||||||
import ImageTaskCard from './ImageTaskCard.vue'
|
import ImageTaskCard from './ImageTaskCard.vue'
|
||||||
import {ElLoading} from "element-plus";
|
import {ElLoading, LoadingOptionsResolved} from "element-plus";
|
||||||
|
|
||||||
const message = useMessage() // 消息弹窗
|
const message = useMessage() // 消息弹窗
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ const getImageList = async (apply:boolean = false) => {
|
|||||||
imageTaskLoadingInstance.value = ElLoading.service({
|
imageTaskLoadingInstance.value = ElLoading.service({
|
||||||
target: imageTaskRef.value,
|
target: imageTaskRef.value,
|
||||||
text: '加载中...'
|
text: '加载中...'
|
||||||
})
|
} as LoadingOptionsResolved)
|
||||||
const { list, total } = await ImageApi.getImageList({pageNo: pageNo.value, pageSize: pageSize.value})
|
const { list, total } = await ImageApi.getImageList({pageNo: pageNo.value, pageSize: pageSize.value})
|
||||||
if (apply) {
|
if (apply) {
|
||||||
imageList.value = [...imageList.value, ...list]
|
imageList.value = [...imageList.value, ...list]
|
||||||
|
Loading…
Reference in New Issue
Block a user