【增加】Image task 增加关联接口调用

This commit is contained in:
cherishsince 2024-05-27 17:14:03 +08:00
parent 9cad4d6054
commit 5353531e8b
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,6 @@
import {ImageApi, ImageDetailVO} from '@/api/ai/image';
import ImageDetailDrawer from './ImageDetailDrawer.vue'
import ImageTaskCard from './ImageTaskCard.vue'
import {Delete, Download, More} from "@element-plus/icons-vue";
import {bool} from "vue-types";
const imageList = ref<ImageDetailVO[]>([]) // image
@ -45,7 +44,8 @@ const handlerDrawerOpen = async () => {
* 获取 - image 列表
*/
const getImageList = async () => {
imageList.value = await ImageApi.getImageList({pageNo: 1, pageSize: 20})
const { list } = await ImageApi.getImageList({pageNo: 1, pageSize: 20})
imageList.value = list
}
/**

View File

@ -12,7 +12,7 @@
</div>
</div>
<div class="image-wrapper">
<img class="image" :src="imageDetail?.imageUrl" />
<img class="image" :src="imageDetail?.picUrl" />
</div>
</el-card>
</template>