UNPKG

@fmdevui/fm-dev

Version:

Page level components developed based on Element Plus.

20 lines (18 loc) 423 B
const getFileUrl = (row) => { if (row.bucketName == "Local") { return `/${row.filePath}/${row.id}${row.suffix}`; } else { return `/${row.filePath}/${row.id}${row.suffix}`; } }; const showFileUrl = (url) => { if (url == "logo.png") { return url; } if (window.__env__.VITE_IMG_URL) { return window.__env__.VITE_IMG_URL + url; } else { return url; } }; export { getFileUrl, showFileUrl };