可能是某个数组属性不存在, 但是判断了他的长度,比如下方代码
<template v-if="arr.length"> <div v-for="(item,idx)in arr" :key="idx"> {{ item }}</div> </template>
解决方法
v-if="arr&&arr.length"
<template v-if="arr&&arr.length"> <div v-for="(item,idx)in arr" :key="idx"> {{ item }}</div> </template>
Auto Copied
- properties TypeError reading Cannot lengthproperties typeerror reading cannot properties typeerror undefined reading typeerror undefined property cannot properties undefined reading cannot properties typeerror express reading properties typeerror content reading pickalgorithm properties reading cannot parentelement properties reading cannot elementplus properties reading cannot resetupscroll typeerror property cannot