diff --git a/src/renderer/src/components/template-study/container/left-dialog.vue b/src/renderer/src/components/template-study/container/left-dialog.vue
index e251cc2..678b0ca 100644
--- a/src/renderer/src/components/template-study/container/left-dialog.vue
+++ b/src/renderer/src/components/template-study/container/left-dialog.vue
@@ -8,6 +8,7 @@
+
@@ -51,7 +52,7 @@
-
+
@@ -97,7 +98,7 @@ const props = defineProps({
const isPrev = (item) => {
return computed(() => {
- return ['pdf', 'png', 'jpg', 'jpeg', 'gif'].includes(getFileSuffix(item.fileUrl))
+ return ['pdf', 'png', 'jpg', 'jpeg', 'gif', 'webp'].includes(getFileSuffix(item.fileUrl))
})
}
@@ -135,12 +136,14 @@ const fileList = ref([])
const curFile = reactive({})
const getList = () => {
docList({
- userId: userInfo.userId,
- dataset_id: dataset_id.value
+ createUser: userInfo.userId,
+ datasetId: dataset_id.value
}).then((res) => {
fileList.value = [...res.rows]
- Object.assign(curFile, fileList.value[0])
- curFileId.value = fileList.value[0].id
+ if(res.rows.length){
+ Object.assign(curFile, fileList.value[0])
+ curFileId.value = fileList.value[0].id
+ }
})
}