修复脚本管理和日志管理树字段

This commit is contained in:
whyour
2022-06-05 18:44:35 +08:00
parent 15678b029c
commit be76ff4675
4 changed files with 11 additions and 8 deletions
+2 -1
View File
@@ -60,7 +60,7 @@ const Log = ({ headerStyle, isPhone, theme }: any) => {
const getLog = (node: any) => {
request
.get(`${config.apiPrefix}logs/${node.value}?path=${node.parent || ''}`)
.get(`${config.apiPrefix}logs/${node.title}?path=${node.parent || ''}`)
.then((data) => {
setValue(data.data);
});
@@ -113,6 +113,7 @@ const Log = ({ headerStyle, isPhone, theme }: any) => {
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
treeData={data}
placeholder="请选择日志"
fieldNames={{ value: 'key', label: 'title' }}
showSearch
onSelect={onSelect}
/>,