报错:Cannot read property 'com' of undefined
怎么解决?我引入了,也定义了,怎么还是 undefined?
<div class="view-content" :style="{ backgroundColor: info.backgroundColor }" @drop="drog"
@dragover="dragOver">
<Draggable v-model="ViewPC" draggable=".item">
<template v-for="(item, index) in ViewPC">
<div v-if="index > 0" :key="index" :data-index="index"
:class="{ item: true, active: currentIndex === index }" @click="selectType(index)">
<template v-if="item.status && item.status === 2">
<div class="wait">{{ item.type }}</div>
</template>
<template v-else>
<component :is="typeList[item.type]['com']" :data="item" />
</template>
<span class="span-error" @click="deleteItem($event, index)">
<i class="el-icon-delete del-css" /></span>
</div>
</template>
</Draggable>