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/sdks
!.yarn/versions !.yarn/versions
.pnp.* .pnp.*
.history
# Vab # Vab
public/video public/video
*.zip *.zip

View File

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