bugfix: productList
This commit is contained in:
@@ -215,7 +215,7 @@
|
||||
return
|
||||
}
|
||||
|
||||
if (image.category === "main_product" || image.category === "product") {
|
||||
if (image.category === "product") {
|
||||
listing.prodImageList.push({
|
||||
url: imageUrl,
|
||||
selected: getImageSelected(image.isSelected)
|
||||
@@ -357,7 +357,7 @@
|
||||
const paramsList = []
|
||||
selectList.value.forEach((item: ListingItem) => {
|
||||
const params = {
|
||||
id: null,
|
||||
id: itemId.value,
|
||||
title: item.productName,
|
||||
description: item.desc,
|
||||
price: item.price,
|
||||
@@ -420,7 +420,6 @@
|
||||
|
||||
const handleFetchItemDetial = (list) => {
|
||||
fetchSketchDetail(list).then((res) => {
|
||||
console.log(res)
|
||||
res.forEach((item, index) => {
|
||||
if (!selectList.value[index]) return
|
||||
selectList.value[index].sketchList = item.clothes.map((el) => ({ url: el }))
|
||||
@@ -443,7 +442,7 @@
|
||||
onMounted(() => {
|
||||
const data = history.state
|
||||
if (data?.type === "edit") {
|
||||
itemId.value = history.state?.id || ""
|
||||
itemId.value = history.state?.id
|
||||
handleGetDetailById()
|
||||
} else {
|
||||
const designItemIds = history.state?.designItemIds || []
|
||||
|
||||
Reference in New Issue
Block a user