fix(plugin-workflow): fix schedule picker value (#6039)

This commit is contained in:
Junyi 2025-01-11 12:06:24 +08:00 committed by GitHub
parent 8730b85887
commit 0adab556f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,7 @@ import { DatePicker } from 'antd';
import { NAMESPACE, lang } from '../../locale';
import { appends, collection } from '../../schemas/collection';
import { SCHEDULE_MODE } from './constants';
import { dayjs } from '@nocobase/utils/client';
export const ScheduleModes = {
[SCHEDULE_MODE.STATIC]: {
@ -82,7 +83,7 @@ export const ScheduleModes = {
nullable: false,
changeOnSelect: true,
render(props) {
return <DatePicker showTime placeholder={lang('Current time')} {...props} />;
return <DatePicker showTime placeholder={lang('Current time')} {...props} value={dayjs(props.value)} />;
},
},
},