Ver código fonte

fix: 身/心维度页推荐文章添加dimensionCode过滤

body/index.vue 和 mind/index.vue 的 loadFeaturedArticles 调用
遗漏了 dimensionCode 参数,导致推荐文章未按维度过滤。
智/行维度页已有正确过滤,对齐处理。
Sisyphus Agent 2 meses atrás
pai
commit
16a6e8f437

+ 1 - 1
cfc-frontend/pages/body/index.vue

@@ -477,7 +477,7 @@ export default {
     },
     loadFeaturedArticles: function() {
       var self = this
-      getFeaturedArticles({ size: 5 }).then(function(res) {
+      getFeaturedArticles({ size: 5, dimensionCode: 'body' }).then(function(res) {
         if (res.code === 200 && res.data) {
           var gradientColors = [
             'linear-gradient(135deg, #FF8C42, #FFB074)',

+ 1 - 1
cfc-frontend/pages/mind/index.vue

@@ -689,7 +689,7 @@ export default {
     },
     loadFeaturedArticles: function() {
       var self = this
-      getFeaturedArticles({ size: 5 }).then(function(res) {
+      getFeaturedArticles({ size: 5, dimensionCode: 'mind' }).then(function(res) {
         if (res.code === 200 && res.data) {
           var gradientColors = [
             'linear-gradient(135deg, #8B5CF6, #A78BFA)',