fix: 修复合并丢掉的虚拟组件配置,导致photos my 下的虚拟组件异常

This commit is contained in:
tnt group 2023-05-18 20:20:58 +08:00
parent 02c1ed12d0
commit 7fccaa5e6a

View File

@ -53,7 +53,8 @@ const addConfig = {
package: PackagesCategoryEnum.PHOTOS,
title: e.fileName,
image: e.url,
dataset: e.url
dataset: e.url,
virtualComponent: './components/Informations/Mores/Image' // 虚拟组件路径,尾部不跟 /’,相对于 /packages/index.ts 文件的位置
}
userPhotosList.push(newPhoto)
setLocalStorage(StoreKey, userPhotosList)