UNPKG

@fmdevui/fm-dev

Version:

Page level components developed based on Element Plus.

23 lines (20 loc) 470 B
'use strict'; 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; } }; exports.getFileUrl = getFileUrl; exports.showFileUrl = showFileUrl;