|
@@ -714,6 +714,7 @@ let getCalcParam = () => {
|
|
}
|
|
}
|
|
let close = (done = {} as any) => {
|
|
let close = (done = {} as any) => {
|
|
$emit('update:visible', false)
|
|
$emit('update:visible', false)
|
|
|
|
+ imageList.value = []
|
|
if (typeof done === 'function') done()
|
|
if (typeof done === 'function') done()
|
|
}
|
|
}
|
|
let resetData = () => {
|
|
let resetData = () => {
|
|
@@ -879,7 +880,7 @@ let computedCityFreightParams = computed(() => {
|
|
let initProductInfo = () => {
|
|
let initProductInfo = () => {
|
|
const temp = cloneDeep(dataForCalc)
|
|
const temp = cloneDeep(dataForCalc)
|
|
|
|
|
|
- if (Array.isArray(temp.product_image) && temp.product_image.length) {
|
|
|
|
|
|
+ if (Array.isArray(temp.product_image)) {
|
|
imageList.value = temp.product_image.map((img: string) => {
|
|
imageList.value = temp.product_image.map((img: string) => {
|
|
return $mediaRegExp.test(img)
|
|
return $mediaRegExp.test(img)
|
|
? img
|
|
? img
|