Ver código fonte

feat: 修改知识点推荐部分样式

kokomi 3 anos atrás
pai
commit
7d1cd89145
1 arquivos alterados com 29 adições e 2 exclusões
  1. 29 2
      src/views/RecommendView.vue

+ 29 - 2
src/views/RecommendView.vue

@@ -57,7 +57,10 @@
           知识点推荐
         </div>
         <div class="recommendItem" v-for="(item,index) in recommendKnowledge" >
-          item
+          <el-divider/>
+          <div style="margin-top: 5px">
+            {{item.name}}
+          </div>
         </div>
       </el-card>
     </div>
@@ -100,7 +103,31 @@ export default {
         type:"choose",
         knowledge:["oop","ooa","os"]
       }],
-      recommendKnowledge:["asd","pqi","DRT","NAT","DS","STD"],
+      recommendKnowledge:[
+        {
+          'id':120,
+          'name':"asd",
+        },
+        {
+          'id':121,
+          'name':"pqi"
+        },
+        {
+          'id':122,
+          'name':"DRT"
+        },
+        {
+          'id':123,
+          'name':"NAT"
+        },
+        {
+          'id':124,
+          'name':"DS"
+        },
+        {'id':125,
+
+          'name':"STD"
+        }],
       workStatistic:{
         total:20,
         choose:20,