quanyawei
2024-06-18 15fb2702039aae1a297b8f1584e24f228ae1994d
1
2
3
4
5
6
7
8
9
10
/* eslint-disable no-console */
const require = (imgPath: string) => {
  try {
    const handlePath = imgPath.replace('@/assets/image/', '')
    return new URL(`../assets/image/${handlePath}`, import.meta.url).href
  } catch (error) {
    console.log(error)
  }
}
export default require