update: gitignore添加history历史文件忽略,修复商品编辑页数据为空时的数据判断

This commit is contained in:
mixtan 2025-05-07 13:29:46 +08:00
parent 5b563867fe
commit 36a43bf0e9
2 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -36,7 +36,7 @@ package-lock.json
!.yarn/sdks
!.yarn/versions
.pnp.*
.history
# Vab
public/video
*.zip

View File

@ -2045,8 +2045,8 @@ export default {
}
})
} else {
if (shop_product_image) {
let image = shop_product_image[0]
if (shop_product_image.length) {
let image = shop_product_image?.[0]
obj.main_color_img = image.item_image_default
let other = image.item_image_other
if (other) {