Commit e3244f4a33f4e50a948892f37d0d3baf09d7476d

Authored by fengwotao
1 parent 2e4d8619

fix(src/api/external): 图片组件修改为本地导入

1 1 import { ChartFrameEnum, PackagesCategoryEnum } from '@/packages/index.d'
2 2 import { ImageConfig } from '@/packages/components/Informations/Mores/Image/index'
3 3 import { ChatCategoryEnum, ChatCategoryEnumName } from '../index.d'
  4 +import carousel1 from '@/assets/images/chart/photos/carousel1.jpeg'
  5 +import carousel2 from '@/assets/images/chart/photos/carousel2.jpeg'
4 6
5 7 // 远程共享库(调接口获取图像列表)
6 8 const imageList = [
7   - { imageName: 'carousel1', imageUrl: 'https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel1.jpeg' },
8   - { imageName: 'carousel2', imageUrl: 'https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel2.jpeg' }
  9 + { imageName: 'carousel1', imageUrl: 'carousel1.jpeg' },
  10 + { imageName: 'carousel2', imageUrl: 'carousel2.jpeg' }
9 11 ]
10 12
11 13 const photoConfigList = imageList.map(i => ({
... ... @@ -15,7 +17,7 @@ const photoConfigList = imageList.map(i => ({
15 17 package: PackagesCategoryEnum.PHOTOS,
16 18 chartFrame: ChartFrameEnum.STATIC,
17 19 image: i.imageUrl,
18   - dataset: i.imageUrl,
  20 + dataset: i.imageName==='carousel1' ? carousel1 : carousel2,
19 21 title: i.imageName,
20 22 redirectComponent: `${ImageConfig.package}/${ImageConfig.category}/${ImageConfig.key}` // 跳转组件路径规则:packageName/categoryName/componentKey
21 23 }))
... ...