fix: 处理搜索结果无法展示图片的问题

This commit is contained in:
奔跑的面条
2023-01-16 10:02:26 +08:00
parent 5dd39926f8
commit 8e28c524b3
3 changed files with 31 additions and 2 deletions
+2 -1
View File
@@ -63,7 +63,8 @@ export const fetchConfigComponent = (dropData: ConfigType) => {
* * 获取图片内容
* @param {ConfigType} targetData 配置项
*/
export const fetchImages = async (targetData: ConfigType) => {
export const fetchImages = async (targetData?: ConfigType) => {
if (!targetData) return ''
// 新数据动态处理
const { image, package: targetDataPackage } = targetData
// 兼容旧数据