修复商品不能删除问题

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 obj2 = []
picItem?.describe_url.map((item) => {
picItem?.describe_url.map((item, index) => {
obj1.push({
src: item,
id: item,
type: 'add',
name: picItem.name
name: picItem.name + index
})
obj2.push({
url: item,
id: item,
type: 'add',
name: picItem.name
name: picItem.name + index
})
})
console.log(' picItem =>', picItem)

View File

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