mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-21 20:44:31 +08:00
日志和脚本增加文件大小展示,修改脚本管理列表排序
This commit is contained in:
@@ -50,7 +50,7 @@ const { Text } = Typography;
|
||||
const Script = () => {
|
||||
const { headerStyle, isPhone, theme } = useOutletContext<SharedContext>();
|
||||
const [value, setValue] = useState(intl.get('请选择脚本文件'));
|
||||
const [select, setSelect] = useState<string>('');
|
||||
const [select, setSelect] = useState<string>(intl.get('请选择脚本文件'));
|
||||
const [data, setData] = useState<any[]>([]);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [mode, setMode] = useState('');
|
||||
@@ -363,7 +363,7 @@ const Script = () => {
|
||||
};
|
||||
|
||||
const initState = () => {
|
||||
setSelect('');
|
||||
setSelect(intl.get('请选择脚本文件'));
|
||||
setCurrentNode(null);
|
||||
setValue(intl.get('请选择脚本文件'));
|
||||
};
|
||||
@@ -462,7 +462,16 @@ const Script = () => {
|
||||
return (
|
||||
<PageContainer
|
||||
className="ql-container-wrapper log-wrapper"
|
||||
title={select}
|
||||
title={
|
||||
<>
|
||||
{select}
|
||||
{currentNode?.type === 'file' && (
|
||||
<span style={{ marginLeft: 6, fontSize: 12, color: '#999' }}>
|
||||
{(currentNode.size / 1024).toFixed(3)}KB
|
||||
</span>
|
||||
)}
|
||||
</>
|
||||
}
|
||||
loading={loading}
|
||||
extra={
|
||||
isPhone
|
||||
|
||||
Reference in New Issue
Block a user