修复脚本管理编辑交互,修复ico无法加载

This commit is contained in:
hanhh
2021-08-19 23:46:26 +08:00
parent f86892cef0
commit d9a9d2ee4f
20 changed files with 50 additions and 35 deletions
+1
View File
@@ -14,6 +14,7 @@
flex: 1;
overflow: auto;
border-right: 1px dashed #f0f0f0;
padding-top: 6px;
}
}
+2 -3
View File
@@ -38,7 +38,7 @@ function getFilterData(keyword: string, data: any) {
return { tree: data, expandedKeys };
}
const Log = () => {
const Log = ({ headerStyle, isPhone, theme }: any) => {
const [title, setTitle] = useState('请选择日志文件');
const [value, setValue] = useState('请选择日志文件');
const [select, setSelect] = useState();
@@ -47,8 +47,6 @@ const Log = () => {
const [loading, setLoading] = useState(false);
const [height, setHeight] = useState<number>();
const treeDom = useRef<any>();
const { headerStyle, isPhone } = useCtx();
const { theme } = useTheme();
const getLogs = () => {
setLoading(true);
@@ -86,6 +84,7 @@ const Log = () => {
};
const onSelect = (value: any, node: any) => {
setValue('加载中...');
setSelect(value);
setTitle(node.parent || node.value);
getLog(node);