ZhangXianQiang
2024-03-04 3f2b5f1dd9c642bb9c1812dce3e90b030584f45b
src/utils/require.js
@@ -1,7 +1,6 @@
export const require = (imgPath) => {
  try {
    const handlePath = imgPath.replace('@', '..');
    return new URL(handlePath, import.meta.url).href;
    return new URL(imgPath, import.meta.url).href;
  } catch(err) {
    console.warn(err);
  }