摘要: 1. 使用 import 导入图片 在组件顶部导入图片,并绑定到 images 数据: <script setup> import img1 from '@/assets/images/1.png'; // 使用 @ 别名(需确保 Vite 配置支持) const images = ref([ { 阅读全文
posted @ 2025-04-12 11:39 smil、梵音 阅读(215) 评论(0) 推荐(0)