Răsfoiți Sursa

fix: recommend-mixin传参字段名与后端DTO不匹配

dimension→dimensionCode, limit→size

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
liaoxg 3 luni în urmă
părinte
comite
0e51cc3944
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      cfc-frontend/mixins/recommend-mixin.js

+ 2 - 2
cfc-frontend/mixins/recommend-mixin.js

@@ -41,8 +41,8 @@ var recommendMixin = {
       this._recommendDimension = dimensionCode
       this._recommendDimension = dimensionCode
       var self = this
       var self = this
       getRecommendList({
       getRecommendList({
-        dimension: dimensionCode,
-        limit: limit
+        dimensionCode: dimensionCode,
+        size: limit
       }).then(function(res) {
       }).then(function(res) {
         if (res.code === 200 && res.data && res.data.items) {
         if (res.code === 200 && res.data && res.data.items) {
           self.recommendItems = res.data.items || []
           self.recommendItems = res.data.items || []