修复商品不能删除问题

This commit is contained in:
wangsongsole 2022-07-15 11:00:27 +08:00
parent e7baf6db85
commit 6724462545
2 changed files with 6 additions and 6 deletions

View File

@ -260,18 +260,18 @@ export default class adduserinfo extends React.Component {
const obj1 = [] const obj1 = []
const obj2 = [] const obj2 = []
picItem?.describe_url.map((item) => { picItem?.describe_url.map((item, index) => {
obj1.push({ obj1.push({
src: item, src: item,
id: item, id: item,
type: 'add', type: 'add',
name: picItem.name name: picItem.name + index
}) })
obj2.push({ obj2.push({
url: item, url: item,
id: item, id: item,
type: 'add', type: 'add',
name: picItem.name name: picItem.name + index
}) })
}) })
console.log(' picItem =>', picItem) console.log(' picItem =>', picItem)

View File

@ -256,15 +256,15 @@ export default class adduserinfo extends React.Component {
const obj1 = [] const obj1 = []
const obj2 = [] const obj2 = []
picItem?.describe_url.map((item) => { picItem?.describe_url.map((item, index) => {
obj1.push({ obj1.push({
src: item, src: item,
name: 'xxx.png', name: item + index,
id: item id: item
}) })
obj2.push({ obj2.push({
url: item, url: item,
name: 'xxx.png', name: item + index,
id: item id: item
}) })
}) })