lrj
4 天以前 4fa9591629721797386fc11836e3a9deb69cd58c
web/src/views/carousel/index.vue
@@ -196,6 +196,7 @@
import { Plus } from '@element-plus/icons-vue'
import { CarouselApi } from '@/api/carousel'
import { uploadFile, getMediasByTarget, saveMedia, deleteMedia } from '@/api/media'
import { MediaTargetType } from '@/constants/mediaTargetType'
// 响应式数据
const loading = ref(false)
@@ -395,7 +396,7 @@
})
// 加载媒体列表(TargetType 约定:carousel)
const CAROUSEL_TARGET_TYPE = 4 // 后端代码中使用的是 targetType=4
const CAROUSEL_TARGET_TYPE = MediaTargetType.CAROUSEL // 轮播图类型
const loadMedias = async () => {
  if (!formData.id) return
  try {