UNPKG

@fmdevui/fm-dev

Version:

Page level components developed based on Element Plus.

15 lines (12 loc) 373 B
'use strict'; 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}`; } }; exports.getFileUrl = getFileUrl;