mirror of
https://github.com/ZiuChen/ZiuChen.github.io.git
synced 2025-08-17 23:19:55 +08:00
fix: 显式导入图片资源以供Vite解析静态资源依赖
- 之前裂图了
This commit is contained in:
parent
8cd8be9607
commit
fa49e1d6c7
@ -19,7 +19,6 @@ export default {
|
|||||||
const { app } = ctx
|
const { app } = ctx
|
||||||
app.component('Title', Title)
|
app.component('Title', Title)
|
||||||
app.component('ImgSlider', ImgSlider)
|
app.component('ImgSlider', ImgSlider)
|
||||||
console.log(app)
|
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
@ -5,6 +5,13 @@ navbar: false
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import url from './assets/logo.png'
|
import url from './assets/logo.png'
|
||||||
|
import img1 from './assets/11.png'
|
||||||
|
import img2 from './assets/22.png'
|
||||||
|
import img3 from './assets/33.png'
|
||||||
|
import img4 from './assets/44.png'
|
||||||
|
import img5 from './assets/55.png'
|
||||||
|
import img6 from './assets/66.png'
|
||||||
|
import img7 from './assets/77.png'
|
||||||
const titleInfo = {
|
const titleInfo = {
|
||||||
subTitle: '✨ 强大的剪贴板管理工具。',
|
subTitle: '✨ 强大的剪贴板管理工具。',
|
||||||
logo: url,
|
logo: url,
|
||||||
@ -17,13 +24,13 @@ navbar: false
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
const imgSliders = [
|
const imgSliders = [
|
||||||
{ src: './assets/11.png' },
|
{ src: img1 },
|
||||||
{ src: './assets/22.png' },
|
{ src: img2 },
|
||||||
{ src: './assets/33.png' },
|
{ src: img3 },
|
||||||
{ src: './assets/44.png' },
|
{ src: img4 },
|
||||||
{ src: './assets/55.png' },
|
{ src: img5 },
|
||||||
{ src: './assets/66.png' },
|
{ src: img6 },
|
||||||
{ src: './assets/77.png' },
|
{ src: img7 },
|
||||||
]
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user