fix: 更新 lodash 引用

This commit is contained in:
苑宏博 2024-04-22 11:12:08 +08:00
parent 90b1d8df18
commit f6c2290738
2 changed files with 3 additions and 5 deletions

View File

@ -46,7 +46,6 @@
"@zhst/meta": "workspace:^",
"antd": "^5.12.5",
"classnames": "^2.5.1",
"dayjs": "^1.11.10",
"lodash-es": "^4.17.21"
"dayjs": "^1.11.10"
}
}

View File

@ -1,8 +1,7 @@
import { Card, Space, Divider, CardProps } from 'antd';
import { theme } from 'antd/lib';
import React, { useEffect, useRef } from 'react';
import { get } from 'lodash-es';
import { get } from '@zhst/func';
import dayjs from 'dayjs';
import './index.less'
export interface IRecord {
@ -93,7 +92,7 @@ export const WarningRecordCard: React.FC<WarningRecordCardProps> = (props) => {
onRecordClick?.(record);
};
// 显示 od
// 显示 od 后期希望抽离出一个 自定义hook 重写 原先的 od 逻辑 实现复用
// 定义图片和canvas的引用
const canvasRef = useRef<HTMLCanvasElement>(null);
const imgRef = useRef<HTMLImageElement>(new Image())