mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
修复主题切换全局class未变化
This commit is contained in:
1 parent
5b585e0cda
commit
c15ff89746
5 files changed
+55
-26
No files matched your search
@@ -672,6 +672,10 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
|
||||
localStorage.setItem('pageSize', pageSize + '');
|
||||
};
|
||||
|
||||
const getRowClassName = (record: any, index: number) => {
|
||||
return record.isPinned ? 'pinned-cron' : '';
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (logCron) {
|
||||
localStorage.setItem('logCron', logCron._id);
|
||||
@@ -773,6 +777,7 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
|
||||
scroll={{ x: 768 }}
|
||||
loading={loading}
|
||||
rowSelection={rowSelection}
|
||||
rowClassName={getRowClassName}
|
||||
/>
|
||||
<CronLogModal
|
||||
visible={isLogModalVisible}
|
||||
|
||||
Reference in new issue
Block a user