|
@@ -8,12 +8,12 @@
|
|
|
<el-col :span="24" class="infoMiddle">
|
|
|
<el-col :span="8" class="infoImage">
|
|
|
<el-carousel trigger="click" height="400px">
|
|
|
- <template v-if="policyInfo.image.length > 0">
|
|
|
+ <template v-if="policyInfo.image && policyInfo.image.length > 0">
|
|
|
<el-carousel-item v-for="(item, index) in policyInfo.image" :key="index">
|
|
|
<el-image :src="item.url"> </el-image>
|
|
|
</el-carousel-item>
|
|
|
</template>
|
|
|
- <template v-if="policyInfo.image.length == 0"><h1 style="text-align:center;line-height:370px;">暂无图片</h1></template>
|
|
|
+ <template v-if="policyInfo.image && policyInfo.image.length == 0"><h1 style="text-align:center;line-height:370px;">暂无图片</h1></template>
|
|
|
</el-carousel>
|
|
|
</el-col>
|
|
|
<el-col :span="14" class="infoRight">
|
|
@@ -86,7 +86,7 @@
|
|
|
<script>
|
|
|
export default {
|
|
|
name: 'policyrightcont',
|
|
|
- props: { policyInfo: null },
|
|
|
+ props: { policyInfo: { type: Object, required: true, default: () => {} } },
|
|
|
components: {},
|
|
|
data: () => ({}),
|
|
|
created() {},
|