Ver código fonte

fix(首页布局):重复个人看板导致的bug修复

wanglj 2 anos atrás
pai
commit
22aa0bed17
1 arquivos alterados com 2 adições e 3 exclusões
  1. 2 3
      src/views/index/index.vue

+ 2 - 3
src/views/index/index.vue

@@ -2,7 +2,7 @@
  * @Author: wanglj 471442253@qq.com
  * @Date: 2023-01-11 15:52:49
  * @LastEditors: wanglj
- * @LastEditTime: 2023-02-27 11:42:17
+ * @LastEditTime: 2023-02-27 16:42:36
  * @Description: file content
  * @FilePath: \opms_frontend\src\views\index\index.vue
 -->
@@ -326,7 +326,7 @@
         })
         const {
           data: { num_report_response },
-        } = await indexApi.getHomeNumReportData({ ids: ids })
+        } = await indexApi.getHomeNumReportData({ ids: Array.from(new Set(ids)) })
         let privateBoardData = []
         this.privateBoard.forEach((item, index) => {
           num_report_response.forEach((val) => {
@@ -337,7 +337,6 @@
           })
         })
         this.privateBoard = privateBoardData
-        console.log(this.privateBoard)
       },
       // 布局信息
       async init() {