imageBase.js 477 Bytes
/**
 * @file 图片 CDN 路径工具;仅拼 URL,不 setData。
 */
import { ImgUrl } from '../config.js'

/** CDN 资源前缀,末尾带 `/` */
export const IMG_URL = `${ImgUrl}/`

/**
 * components/images/ 下的 CDN 静态图
 * @param {string} name 文件名
 * @returns {string} 完整 CDN URL
 */
export const componentsImageUrl = name => `${IMG_URL}components/images/${name}`

/** 全局关闭图标 */
export const CLOSE_ICON_URL = componentsImageUrl('close.png')