修复任务管理创建视图 placeholder,更新 npm 包

This commit is contained in:
whyour
2023-09-15 21:27:53 +08:00
parent 0511a4af0d
commit 042d7d3b8e
13 changed files with 101 additions and 103 deletions
+4 -2
View File
@@ -10,10 +10,12 @@ const { Link } = Typography;
enum TVersion {
'develop' = '开发版',
'master' = '正式版',
'debian' = '正式版'
'debian' = '正式版',
}
const About = ({ systemInfo }: { systemInfo: SharedContext['systemInfo'] }) => {
const version = TVersion[systemInfo.branch] || '正式版';
return (
<div className={styles.container}>
<img
@@ -30,7 +32,7 @@ const About = ({ systemInfo }: { systemInfo: SharedContext['systemInfo'] }) => {
</span>
<Descriptions>
<Descriptions.Item label={intl.get('版本')} span={3}>
{intl.get(TVersion[systemInfo.branch])} v{systemInfo.version}
{intl.get(version)} v{systemInfo.version}
</Descriptions.Item>
<Descriptions.Item label={intl.get('更新时间')} span={3}>
{dayjs(systemInfo.publishTime * 1000).format('YYYY-MM-DD HH:mm')}