Browse Source

feat: 地址组件点击左上角返回修改

yangxiaolu3 5 years ago
parent
commit
866bcbed45
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/packages/address/address.vue

+ 3 - 3
src/packages/address/address.vue

@@ -10,9 +10,10 @@
       @open="closeWay = 'self'"
     >
       <div class="title">
-        <span class="arrow" @click="switchModule">
-          <nut-icon v-if="showModule == 'custom' && type == 'exist' && backBtnIcon" type="self" :url="backBtnIcon"></nut-icon>
+        <span class="arrow" @click="switchModule" v-if="showModule == 'custom' && type == 'exist' && backBtnIcon">
+          <nut-icon type="self" :url="backBtnIcon"></nut-icon>
         </span>
+        <span class="arrow" v-else></span>
 
         <span v-if="type == 'custom'">{{ customAddressTitle }}</span>
         <span v-if="type == 'exist'">{{ existAddressTitle }}</span>
@@ -343,7 +344,6 @@ export default {
       if(this.showModule == 'exist'){
         this.showModule = 'custom'
       }else{
-        if(!this.backBtnIcon) return
         this.showModule = 'exist'
       }