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" class="close el-icon-close"
/> />
<i <i
v-if="!checkIfUrlContainsImage(anchors.img_zip)" v-if="!checkIfUrlContainsImage(item)"
class="el-icon-folder" class="el-icon-folder"
/> />
<img <img
@ -202,24 +202,6 @@
:show-file-list="false" :show-file-list="false"
:on-success="handleSuccess" :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-if="anchors.trip_zip.length">
<div v-for="(item, index) in anchors.trip_zip" class="img-box"> <div v-for="(item, index) in anchors.trip_zip" class="img-box">
<i <i
@ -451,12 +433,13 @@ export default {
url.toLowerCase().endsWith(extension) url.toLowerCase().endsWith(extension)
) )
); );
console.log(url);
return imageExtensions.some((extension) => return imageExtensions.some((extension) =>
url.toLowerCase().endsWith(extension) url.toLowerCase().endsWith(extension)
); );
}, },
handleClose(val) { handleClose(val, i) {
this.anchors[val] = ""; this.anchors[val] = this.anchors[val].splice(i, 1);
}, },
handleAdd() { handleAdd() {
this.anchors.qaQuestions.push({ this.anchors.qaQuestions.push({