根据提供的代码,只有当orderInfo.order.notes[0]?.isCar的值为true时,才会显示<div class="xinxi3">的内容。如果isCar的值不为true,则整个<div>会被隐藏,因此会一直显示加载状态。

要解决这个问题,你可以添加一个v-else指令,用于在isCar不为true时显示一个占位符或其他内容。例如:

<div class="xinxi3" v-if="orderInfo.order.notes[0]?.isCar === true">
  <!-- 内容 -->
</div>
<div v-else>
  <!-- 占位符或其他内容 -->
</div>

这样,当isCar不为true时,就会显示v-else指令中的内容,而不是一直显示加载状态。

div class=xinxi3 v-if=orderInfoordernotes0isCar === true div class=flex justify-between style=margin-bottom var--el-card-padding; !-- 类目管理属性为车辆的关联订单可查看此项 不是车辆的notes是null --

原文地址: https://www.cveoy.top/t/topic/jeOL 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录