fix(detailCard): 修复详情页数据如果没有ID字段,则不显示ID

This commit is contained in:
jym503558564
2020-07-30 11:38:00 +08:00
committed by 老广
parent e064c1cfc4
commit 0ab96fa413

View File

@@ -1,7 +1,7 @@
<template>
<IBox :title="title" fa="fa-info-circle">
<div class="content">
<el-row :gutter="10" class="item">
<el-row v-if="this.$route.params.id" :gutter="10" class="item">
<el-col :span="6"><div :style="{ 'text-align': align }" class="item-label"><label>ID: </label></div></el-col>
<el-col :span="18"><div class="item-text">{{ this.$route.params.id }}</div></el-col>
</el-row>