ZhangXianQiang
2024-03-07 38a50cb176a78aa5bf5b9f550eb1aab520b402a6
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);
  }
}