Writing the problems of el-menu in element Framework

< el-menu: default-active= "agentsDefaultIndex" >

        <el-menu-item class="staff-item" v-for="(s,index) in staffs" :index=index>
          <div class="staff-pic">WT</div>
          <div slot="title" class="staff-text">
            <div>{{s.name}}</div>
          </div>
        </el-menu-item>

< / el-menu >

export default {

data(){
    agentsDefaultIndex:"1",
    staffs: [{name: "staff1"},
      {name: "staff2"},
      {name: "staff3"},
      {name: "staff4"},
      {name: "staff5"},
      {name: "staff6"},
      {name: "staff7"},
      {name: "staff8"},
      {name: "staff9"},
      {name: "staff10"}
    ],
}

}

two errors were reported later:

  1. vue.runtime.esm.js?2b0e:587 [Vue warn]: Invalid prop: type check failed for prop "defaultActive". Expected String, got Number.
  2. Invalid prop: type check failed for prop "index". Expected String, got Number.

found in

-> < ElMenuItem >

   <ElMenu>
     <ElMain>
       <ElContainer>
         <ElAside>
           <ElContainer>
             <AssignDemo> at src/views/assign/assign-demo.vue
               <ElMain>
                 <ElContainer>... (1 recursive calls)
                   <App> at src/pages/index.vue
                     <Root>

Dec.27,2021

: index=index change here to: index= "index +'(single quotation marks)'"
because you used index,
index Recycling, which defaults to numbers. The index required by this component is a string

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-1b3cc57-2c331.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-1b3cc57-2c331.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?