ZhangXianQiang
2024-03-08 177b209cb67cdc80117f490806b9555bae0ddef2
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);
  }
}