healchow commented on code in PR #8770:
URL: https://github.com/apache/inlong/pull/8770#discussion_r1299519209
##########
inlong-dashboard/src/ui/components/CheckCard/index.tsx:
##########
@@ -52,6 +54,25 @@ const CheckCard: React.FC<CheckCardProps> = ({ options,
value, onChange, disable
// eslint-disable-next-line
}, [value]);
+ useEffect(() => {
+ // vite 不支持 require.context,
故使用import()动态获取每个类型的logo,模块是否存在由promise判断,模块缓存由esm处理
Review Comment:
Please change the comment to English, thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]