imagePath.js 358 Bytes


// 格式化图片路径
export function formatImagePath(name,type) {
  if(type == 'svg'){
    return `https://zeyi-tms-product.oss-cn-hangzhou.aliyuncs.com/dispatch-helper-ma/svg/${name}.svg`
  }
  return `https://zeyi-tms-product.oss-cn-hangzhou.aliyuncs.com/dispatch-helper-ma/static/${name}.${type || 'png'}`
}

export default {
  formatImagePath,
};