ZaiZai 1 year ago
parent
commit
2ce42bfa3a
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/project/modules/gist-list.vue

+ 4 - 2
src/views/project/modules/gist-list.vue

@@ -224,13 +224,15 @@ const getDetailData = async (id) => {
         window.$message.error(msg ?? '删除失败')
         return
     }
+    //处理数据
     const res = getObjValue(data)
     const table = getArrValue(res.table)
-    for (let i = 0; i < table.length; i++) {
+    /*for (let i = 0; i < table.length; i++) {
         table[i].data = getArrValue(table[i].data)
-    }
+    }*/
     res.table = table
     yearData.value = res
+    //设置默认数据
     if (table.length > 0) {
         yearKey.value = table[0].year
         yearIndex.value = 0