Merge branch 'dev' of http://47.94.165.164:13000/geg-gas/geg-gas-web into dev
# Conflicts: # src/router/routes/basic.ts
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user