2023-06-20 TypeError: Cannot use 'in' operator to search for 'storeInfo' in undefined
前言:uniapp项目报错:[system] TypeError: Cannot use 'in' operator to search for 'storeInfo' in undefined
原因:data里面没有写return,如下:
<script> export default { data() { }, } </script>
解决方案:把return加上,即:
<script> export default { data() {
return {
} }, } </script>