@fmdevui/fm-dev
Version:
Page level components developed based on Element Plus.
13 lines (11 loc) • 348 B
JavaScript
const getFileUrl = (row) => {
if (row.bucketName == "Local") {
return `/${row.filePath}/${row.id}${row.suffix}`;
} else {
if (row.bucketName && row.bucketName != "")
return `/${row.bucketName}/${row.filePath}/${row.id}${row.suffix}`;
else
return `/${row.filePath}/${row.id}${row.suffix}`;
}
};
export { getFileUrl };