<el-dialog
        :visible.sync="showLogInfor"    // 显示和隐藏
        :close-on-click-modal="false"
        :center="true"
        :closeOnClickModal="true"
        title="物流信息"
      >
        <logisticsDetail :logistics-data="logisticsData"></logisticsDetail>
 </el-dialog>
 
在el-dialog标签里控制显示和隐藏的话logisticsDetail组件的mounted事件只能执行一次,
所以需要在el-dialog外面包一个div控制显示和隐藏
 
<div v-if="showLogInfor">
      <el-dialog
        :visible.sync="showLogInfor"
        :close-on-click-modal="false"
        :center="true"
        title="物流信息"
      >
        <logisticsDetail :logistics-data="logisticsData"></logisticsDetail>
      </el-dialog>
    </div>

相关文章:

  • 1970-01-01
  • 2021-10-18
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-02-19
猜你喜欢
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
相关资源
相似解决方案