【解决todo】调整接口命名、和接口返回值

This commit is contained in:
cherishsince
2024-05-29 18:07:54 +08:00
parent ecc924301d
commit b82391da0a
3 changed files with 17 additions and 8 deletions

View File

@ -2,9 +2,9 @@
<el-card body-class="" class="image-card">
<div class="image-operation">
<div>
<el-button type="" text bg v-if="imageDetail.status === 'in_progress'">生成中</el-button>
<el-button type="" text bg v-else-if="imageDetail.status === 'fail'">已完成</el-button>
<el-button type="" text bg v-else-if="imageDetail.status === 'complete'">已完成</el-button>
<el-button type="" text bg v-if="imageDetail.status === '10'">生成中</el-button>
<el-button type="" text bg v-else-if="imageDetail.status === '20'">已完成</el-button>
<el-button type="" text bg v-else-if="imageDetail.status === '30'">已完成</el-button>
</div>
<div>
<el-button class="btn" text :icon="Download"
@ -42,7 +42,7 @@ const handlerBtnClick = async (type, imageDetail: ImageDetailVO) => {
}
const handlerLoading = async (status: string) => {
if (status === 'in_progress') {
if (status === '10') {
cardImageLoadingInstance.value = ElLoading.service({
target: cardImageRef.value,
text: '生成中...'