公告板
版本库
filestore
活动
搜索
登录
肖辉
/
daoAnOffice
都江堰大屏
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
fix:修改地图以及细节部分
ZhangXianQiang
2024-03-04
2b7b4e2ea52a17eda4eca7ada4a139ad20785631
[~xiaohui/daoAnOffice.git]
/
src
/
utils
/
require.js
1
2
3
4
5
6
7
8
export const require = (imgPath) => {
try {
const handlePath = imgPath.replace('@', '..');
return new URL(handlePath, import.meta.url).href;
} catch(err) {
console.warn(err);
}
}