import {getImgUrl} from "@/api/common"; export function fileNameToPath(val) { if (val === '' || val === null) return './logo.png'; getImgUrl(val).then(res => { return res }) }