Forráskód Böngészése

fix: 删除版尾清除id

Karsa 2 hónapja
szülő
commit
a33327a68e

+ 2 - 2
src/views/report_manage/reportV2/smartReport/editReport.vue

@@ -174,7 +174,7 @@
 
                             <div class="html-end-img-box">
                                 <div class="opt-btn-box" style="display: none;">
-                                    <div class="del-btn" @click.stop="endImg=''"></div>
+                                    <div class="del-btn" @click.stop="deleteLayoutPic(2)"></div>
                                 </div>
                                 <img :src="endImg" alt="" style="display:block;width:100%">
                                 <div class="head-layout-item" v-for="item in endImgStyle" :key="item.value"
@@ -1375,7 +1375,7 @@ export default {
         },
         // 删除版头版尾
         deleteLayoutPic(type){
-            if(type=='1'){
+            if(type===1){
                 this.headImg=''
                 this.headImgId = 0
             }else{