This commit is contained in:
faiz 2024-07-31 09:53:19 +08:00
parent 98727fb651
commit b5fa305a9d
1 changed files with 4 additions and 21 deletions

View File

@ -178,7 +178,7 @@
class="close el-icon-close"
/>
<i
v-if="!checkIfUrlContainsImage(anchors.img_zip)"
v-if="!checkIfUrlContainsImage(item)"
class="el-icon-folder"
/>
<img
@ -202,24 +202,6 @@
:show-file-list="false"
:on-success="handleSuccess"
>
<!-- <div v-if="anchors.trip_zip" class="img-box">
<i
@click.stop="handleClose('trip_zip')"
class="close el-icon-close"
/>
<i
v-if="!checkIfUrlContainsImage(anchors.trip_zip)"
class="el-icon-folder"
/>
<img
v-else
style="width: 100px; height: 100px"
:src="anchors.trip_zip"
class="avatar"
alt=""
/>
</div>
<i v-else class="el-icon-plus avatar-uploader-icon" /> -->
<div v-if="anchors.trip_zip.length">
<div v-for="(item, index) in anchors.trip_zip" class="img-box">
<i
@ -451,12 +433,13 @@ export default {
url.toLowerCase().endsWith(extension)
)
);
console.log(url);
return imageExtensions.some((extension) =>
url.toLowerCase().endsWith(extension)
);
},
handleClose(val) {
this.anchors[val] = "";
handleClose(val, i) {
this.anchors[val] = this.anchors[val].splice(i, 1);
},
handleAdd() {
this.anchors.qaQuestions.push({