[Vue warn]: Error in render: "TypeError: Cannot read properties of undefined
Cause: rendering error:
Conclusion: in the expression A.B.C, if there is no object B in object a, then reading the value in object A.B.C will naturally report an error. If it is a two-level expression A.B, no error will be reported and undefined will be returned, The third floor will report an error
Solution:
<!-- Use the error report directly -->
{{sku[0].skuName}}
<!-- Solution -->
<template v-if="sku[0]"> {{sku[0].skuName}}</template>