diff --git a/src/views/ai/image/ImageDetailDrawer.vue b/src/views/ai/image/ImageDetailDrawer.vue index 075c1c76..96a60665 100644 --- a/src/views/ai/image/ImageDetailDrawer.vue +++ b/src/views/ai/image/ImageDetailDrawer.vue @@ -16,6 +16,21 @@ + +
+
时间
+
+
提交时间:{{imageDetail.createTime}}
+
生成时间:{{imageDetail.updateTime}}
+
+
+ +
+
模型
+
+ {{imageDetail.model}} +
+
提示词
@@ -23,6 +38,27 @@ {{imageDetail.prompt}}
+ +
+
风格
+
+ {{imageDetail.style}} +
+
+ +
+
地址
+
+ {{imageDetail.picUrl}} +
+
+ +
+
生成地址
+
+ {{imageDetail.originalPicUrl}} +
+
@@ -39,6 +75,10 @@ const props = defineProps({ type: Boolean, require: true, default: false + }, + id: { + type: Number, + required: true } }) @@ -64,17 +104,24 @@ const handlerTaskDetail = async () => { showDrawer.value = true } -// watch +// watch show const { show } = toRefs(props) watch(show, async (newValue, oldValue) => { showDrawer.value = newValue as boolean }) +// watch id +const { id } = toRefs(props) +watch(id, async (newVal, oldVal) => { + console.log('newVal', newVal) + if (newVal) { + await getImageDetail(newVal) + } +}) // const emits = defineEmits(['handlerDrawerClose']) - // onMounted(async () => { - await getImageDetail(1) + })