Преглед изворни кода

详情页增加收藏接口参数名称更改、前台首页收藏总量接口变更

chaihaorui пре 1 година
родитељ
комит
5b03494614
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      src/api/homepage/homepage.js
  2. 1 1
      src/pages/homepage/components/entityDetail.vue

+ 1 - 1
src/api/homepage/homepage.js

@@ -8,7 +8,7 @@ export default {
8 8
     },
9 9
     // 获取我的收藏总量数据
10 10
     collectTotal(params) {
11
-        return axios.get('/resourceDirectory/collectTotal', { params });
11
+        return axios.get('/resourceDirectory/allCollectTotal', { params });
12 12
     },
13 13
     // 获取主题、专题、指标资产数据
14 14
     themeSpecialIndex(params) {

+ 1 - 1
src/pages/homepage/components/entityDetail.vue

@@ -239,7 +239,7 @@ export default {
239 239
       }
240 240
       api.addCollect({
241 241
         resourceId: this.id,
242
-        Resource_type: resourceTypeMap[this.type]
242
+        resourceType: resourceTypeMap[this.type]
243 243
       }).then(res => {
244 244
         if (res.success) {
245 245
           this.basicData = Object.assign({}, this.basicData, {