Vue Recursive component problem

Navigation Bar Recursive component reports an error
< template >

<el-submenu v-if="item.child && item.child.length" :index="navIndex"> 
    <!--  -->
    <template slot="title"><i v-if="item.icon" class="item.icon"></i>{{ item.name }}</template>
    <!--  -->
    <nav-bar-item v-for="(subItem,i) in item.child" :key="navIndex+"-"+i" :navIndex="navIndex+"-"+i" :item="subItem" ></nav-bar-item>
</el-submenu>
<el-menu-item v-else :index="item" :route="{path: item.url}" ><i v-if="item.icon" class="item.icon"></i>{{ item.name }}</el-menu-item>

< / template >

< script >
export default {

name: "NavBarItem",
props: ["item","navIndex"]

}
< / script >

call
< nav-bar-item vmurfort = "(item, index) in navList": item= "item": navIndex= "String (index)" > < / nav-bar-item >
in the parent component and keep reporting

Mar.13,2021


  1. String () is it defined
  2. navList have you got the value
  3. props object syntax is recommended, and document is provided.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b14e-2c247.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b14e-2c247.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?