ZhangXianQiang
2024-03-08 310156b7244cd7b0c1b958f4267b5cf4e12bd90a
1
2
3
4
5
6
7
export const require = (imgPath) => {
  try {
    return new URL(imgPath, import.meta.url).href;
  } catch(err) {
    console.warn(err);
  }
}