feature:代码初始化。

This commit is contained in:
tianyongbao
2024-04-19 09:36:13 +08:00
commit 2f89616d14
454 changed files with 111421 additions and 0 deletions

9
src/utils/require.js Normal file
View File

@@ -0,0 +1,9 @@
/** vite的特殊性, 需要处理图片 */
export const require = (imgPath) => {
try {
const handlePath = imgPath.replace('@', '..')
return new URL(handlePath, import.meta.url).href
} catch (error) {
console.warn(error)
}
}