wangyang 5 anos atrás
pai
commit
1978af867a
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/views/foodModifier/index.vue

+ 2 - 1
src/views/foodModifier/index.vue

@@ -29,7 +29,8 @@
       </el-table-column>
       <el-table-column label="转换关系" align="center">
         <template slot-scope="{row}">
-          <span>{{ row.quantity + row.unit }}</span>
+          <span v-if="row.quantity">{{ row.quantity + row.unit }}</span>
+          <span v-else>无</span>
         </template>
       </el-table-column>
       <el-table-column label="推荐摄入量" align="center">