# Conflicts:
#	src/router/routes/basic.ts
This commit is contained in:
2025-12-05 10:05:50 +08:00
32 changed files with 902 additions and 333 deletions

View File

@ -45,7 +45,7 @@
);
async function getImage() {
if (props.config.folderId) {
let fileList = await getFileList({ folderId: props.config.folderId });
let fileList = await getFileList({ tableId: props.config.folderId });
if (fileList.length) {
imageUrl.value = fileList[0].fileUrl;
}

View File

@ -70,24 +70,24 @@
data.show = true;
});
const submitUpload = (file) => {
let folderId = data.info.config.folderId;
let tableId = data.info.config.folderId;
uploadMultiApi(
{
name: 'file',
file: [file]
},
folderId
tableId
).then((res) => {
data.info.config.folderId = res[0].folderId;
data.info.config.folderId = res[0].tableId;
getImage();
});
};
async function getImage() {
if (data.info.config.folderId) {
let fileList = await getFileList({ folderId: data.info.config.folderId });
let fileList = await getFileList({ tableId: data.info.config.folderId });
if (fileList.length) {
imageUrl.value = fileList[0].fileUrl;
data.info.config.folderId = fileList[0].folderId;
data.info.config.folderId = fileList[0].tableId;
}
} else {
imageUrl.value = '';