|
|
@@ -1773,7 +1773,7 @@ function invokeCameraToCapture(type) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-function getImageUrl(filename, type) {
|
|
|
+function getImageUrl(file_name, type) {
|
|
|
let list = []
|
|
|
if (type === '外箱图') {
|
|
|
list = boxFiles.value
|
|
|
@@ -1783,7 +1783,7 @@ function getImageUrl(filename, type) {
|
|
|
for (let i = 0; i < list.length; i++) {
|
|
|
const item = list[i]
|
|
|
const { src, fileName } = item
|
|
|
- if (fileName === fileName) {
|
|
|
+ if (file_name === fileName) {
|
|
|
return src
|
|
|
}
|
|
|
}
|
|
|
@@ -1991,6 +1991,12 @@ const detailBoxImages = computed(() => {
|
|
|
if (!items || items.length === 0) {
|
|
|
return []
|
|
|
}
|
|
|
+ const list = boxFiles.value
|
|
|
+ .filter((item) => {
|
|
|
+ return items.includes(item.fileName)
|
|
|
+ })
|
|
|
+ .map((item) => item.src)
|
|
|
+ console.log(list)
|
|
|
return boxFiles.value
|
|
|
.filter((item) => {
|
|
|
return items.includes(item.fileName)
|