摘要:
export const setStorage = (key, value) => { if (!key) return console.error('请输入设置的key'); localStorage.setItem(key, value); }; export const getStorage 阅读全文
摘要:
/** * 获取本地图 * @param name // 文件名 如 doc.png * @returns {*|string} */ export const getAssetsImages = (name) => { return new URL(`/src/assets/image/${nam 阅读全文
摘要:
// 自适应echart字体大小 export const fontSize = (res) => { let clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clien 阅读全文