dashboard
repositories
filestore
activity
search
login
main
/
moral_vue_website
summary
reflog
commits
tree
tickets
docs
forks
compare
blame
|
history
|
raw
fix:公司官网新建
quanyawei
2024-01-03
6429d4b210fadb4face2ade0bbdc02926c444f72
[moral_vue_website.git]
/
src
/
utils
/
require.ts
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