From e54a85f4211804d1a3bb665110ef5c20b5394fd3 Mon Sep 17 00:00:00 2001 From: tangjiang <465264938@qq.com> Date: Tue, 31 Dec 2019 09:15:28 +0800 Subject: [PATCH] add --- .../developer/components/knowledge/index.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/public/react/src/modules/developer/components/knowledge/index.js b/public/react/src/modules/developer/components/knowledge/index.js index 5d21b1420..6cd3d89ef 100644 --- a/public/react/src/modules/developer/components/knowledge/index.js +++ b/public/react/src/modules/developer/components/knowledge/index.js @@ -4,7 +4,7 @@ * @Github: * @Date: 2019-12-30 13:51:19 * @LastEditors : tangjiang - * @LastEditTime : 2019-12-30 20:44:38 + * @LastEditTime : 2019-12-31 09:06:44 */ import './index.scss'; import React, { useState, useEffect } from 'react'; @@ -46,16 +46,15 @@ function KnowLedge (props) { } return item.id !== value; }); - console.log(tempArr) setSelectValue(tempArr); setSelectOptions(_result); } // 渲染下拉结果 const renderResult = (arrs) => { - return arrs.map(item => ( -
- + return arrs.map((item) => ( +
+ {item.name}
)); } @@ -79,7 +78,11 @@ function KnowLedge (props) { { renderSelect(selectOptions) } {/* 渲染下拉选择项 */}
- { renderResult(selectValue) } + {/* { renderResult(selectValue) } */} + {/*
1111
*/} +
+ JAVA +
);