This commit is contained in:
parent
98727fb651
commit
b5fa305a9d
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue