|
|
|
@ -132,9 +132,10 @@
|
|
|
|
|
if (id && id !== state.form.id) {
|
|
|
|
|
let res = await store.dispatch('product/detail', id);
|
|
|
|
|
res.pictureList = res.pictureList || [res.mainPicture];
|
|
|
|
|
res.fileList = res.virtualProductVOList
|
|
|
|
|
res.fileList =
|
|
|
|
|
res.virtualProductVOList
|
|
|
|
|
?.filter((item) => item.shipType === 1)
|
|
|
|
|
.map((item) => item.shipContent);
|
|
|
|
|
.map((item) => item.shipContent) || [];
|
|
|
|
|
res.autoSend = res.virtualProductVOList?.find((item) => item.shipType === 2)?.shipContent;
|
|
|
|
|
Object.assign(state.form, res);
|
|
|
|
|
}
|
|
|
|
|