<div class="serviceType" v-if="payIndex===0 && cbList[shipIndex].partnerName !== undefined" v-html="cbList[shipIndex].partnerName" @click="shipShow"></div>
<div class="serviceType" v-else-if="payIndex===0 && cbList[shipIndex].partnerName === undefined" v-html="cbList[shipIndex].senderName" @click="shipShow"></div>
<div class="serviceType" v-else-if="payIndex===1" v-html="shipType[shipIndex].partnerName" @click="shipShow"></div>
渲染成功了,但是控制台报错
cbList和shipType初始化是空数组,在mounted中赋值,请大神指导一下,谢谢