chore: 使用模板字符串方式表示 redirectComponent 规则,更为精准,避免手误

This commit is contained in:
tnt group
2023-05-27 12:06:43 +08:00
parent d8bcb4ab4f
commit ff4140cbfb
5 changed files with 6 additions and 6 deletions
@@ -74,7 +74,7 @@ const addConfig = {
title: e.fileName,
image: e.url,
dataset: e.url,
redirectComponent: 'Informations/Mores/Image' // 跳转组件路径规则:packageName/categoryName/componentKey
redirectComponent: `${ImageConfig.package}/${ImageConfig.category}/${ImageConfig.key}` // 跳转组件路径规则:packageName/categoryName/componentKey
}
userPhotosList.unshift(newPhoto)
// 存储在本地数据中