mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 01:14:50 +08:00
修复主题切换全局class未变化
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -39,7 +39,13 @@ const optionsWithDisabled = [
|
||||
{ label: '跟随系统', value: 'auto' },
|
||||
];
|
||||
|
||||
const Setting = ({ headerStyle, isPhone, user, reloadUser }: any) => {
|
||||
const Setting = ({
|
||||
headerStyle,
|
||||
isPhone,
|
||||
user,
|
||||
reloadUser,
|
||||
reloadTheme,
|
||||
}: any) => {
|
||||
const columns = [
|
||||
{
|
||||
title: '名称',
|
||||
@@ -265,6 +271,7 @@ const Setting = ({ headerStyle, isPhone, user, reloadUser }: any) => {
|
||||
} else {
|
||||
followSystemColorScheme({});
|
||||
}
|
||||
reloadTheme(theme);
|
||||
}, [theme]);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user