diff --git a/front/public/index.html b/front/public/index.html index 761d6524..a8a7a15f 100644 --- a/front/public/index.html +++ b/front/public/index.html @@ -61,6 +61,8 @@ + + diff --git a/front/public/static/config/dataResource.js b/front/public/static/config/dataResource.js new file mode 100644 index 00000000..9908fd13 --- /dev/null +++ b/front/public/static/config/dataResource.js @@ -0,0 +1,18 @@ +/* + * @Author: hisense.wuhongjian + * @Date: 2020-07-07 16:03:23 + * @LastEditors: hisense.wuhongjian + * @LastEditTime: 2022-04-01 10:51:45 + * @Description: 数据资源参数配置 + */ +const launchedDataNum = [ + { + num: 10372, + }, + { + num: 1080, + }, + { + num: 976, + }, +] diff --git a/front/src/views/home/components/DetailsPageResource.vue b/front/src/views/home/components/DetailsPageResource.vue index 9deaa533..22d91a63 100644 --- a/front/src/views/home/components/DetailsPageResource.vue +++ b/front/src/views/home/components/DetailsPageResource.vue @@ -32,17 +32,17 @@ const launchedData = ref([ { title: '已上线目录', - num: 10372, + num: launchedDataNum[0].num, img: require('@/assets/home/pageResource/catalogue-icon.png'), }, { title: '已发布服务', - num: 1080, + num: launchedDataNum[1].num, img: require('@/assets/home/pageResource/service-icon.png'), }, { title: '已发布接口', - num: 976, + num: launchedDataNum[2].num, img: require('@/assets/home/pageResource/port-icon.png'), }, ])