fix: 工作流编辑器支持dayjs (#1407)

Reviewed-on: daoyoucloud/tachybase#1407
Reviewed-by: sealday <zhanglin@daoyoucloud.com>
Co-authored-by: wjh <wwwjh0710@163.com>
Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
wjh 2024-07-31 10:42:47 +08:00 committed by sealday
parent f847c9b2d3
commit aa49bd3133

View File

@ -1,4 +1,5 @@
import crypto from 'crypto'; import crypto from 'crypto';
import { dayjs } from '@tachybase/utils';
import jsonata from 'jsonata'; import jsonata from 'jsonata';
import _ from 'lodash'; import _ from 'lodash';
@ -101,6 +102,7 @@ async function convertByJsCode(code, data) {
qrcode, qrcode,
crypto, crypto,
jsonata, jsonata,
dayjs,
}, },
}); });