更新脚手架!

This commit is contained in:
Andy Leong
2023-12-29 18:41:59 +08:00
parent f1c3d10fd5
commit c0871a9b1f
29 changed files with 1004 additions and 149 deletions

20
src/data/imgList.js Normal file
View File

@@ -0,0 +1,20 @@
const load = [
'load/1.png',
]
// 处理为vite引入图片格式
function imgCreate(url, img) {
let i = new URL(`../assets/images/${url}`, import.meta.url).href
img.push(i)
}
const loadImg = []
const pageImg = []
load.forEach(element => {
imgCreate(element, loadImg)
});
export { loadImg, pageImg }