Menu usage of iview

I use iView"s , but when I use it, I have two problems:

1) by default, my active-name= "Home Navigation" in the code will not be highlighted. Here is the result that appears when I press the mouse:

2:

< hr >

my data :

const website_settings = {
  //  menu 
  website_settings_menu_data: [
    {
      "name":"",
      "icon":"settings",
      "groups": [
        {
          "name": "",
          "icon": "settings",
          "children": [
            {
              "name": "",
              "route": "" // 
            },
            {
              "name": "",
              "route": "" // 
            },
            {
              "name": "",
              "route": "" // 
            },
            {
              "name": "",
              "route": "" // 
            },
            {
              "name": "",
              "route": "" // 
            },
            {
              "name": "",
              "route": "" // 
            },
            {
              "name": "",
              "route": "" // 
            },
            {
              "name": "",
              "route": "" // 
            },
            {
              "name": "",
              "route": "" // 
            }
          ]
        }
      ]
    },
    {
      "name":"",
      "icon":"settings",
      "groups": [
        {
          "name": "",
          "icon": "settings",
          "children": [
            {
              "name": "",
              "route": "" // 
            }

          ]
        }
      ]
    },
    {
      "name":"",
      "icon":"settings",
      "groups": [
        {
          "name": "",
          "icon": "settings",
          "children": [
            {
              "name": "",
              "route": "" // 
            }

          ]
        }
      ]
    },
    {
      "name":"",
      "icon":"settings",
      "groups": [
        {
          "name": "",
          "icon": "settings",
          "children": [
            {
              "name": "",
              "route": "" // 
            }
          ]
        }
      ]
    },
    {
      "name":"",
      "icon":"settings",
      "groups": [
        {
          "name": "",
          "icon": "settings",
          "children": [
            {
              "name": "",
              "route": "" // 
            }

          ]
        }
      ]
    },
    {
      "name":"",
      "icon":"settings",
      "groups": [
        {
          "name": "",
          "icon": "settings",
          "children": [
            {
              "name": "",
              "route": "" // 
            }

          ]
        }
      ]
    }
  ]
}

export default website_settings;

my component code :

<template>
  <Menu mode="horizontal" theme="light" active-name="">
    <Submenu v-for="(setting_item, i) in website_settings_config_data" :name="setting_item.name">
      <template slot="title">
        <Icon :type="setting_item.icon"></Icon>
        {{ setting_item.name }}
      </template>
      <MenuGroup v-for="(group, j) in setting_item.groups" :title="group.name">
        <MenuItem v-for="(child, k) in group.children" name="child.name">{{child.name}}</MenuItem>
      </MenuGroup>
    </Submenu>
  </Menu>
</template>

<script>

  import website_settings_config_data from "./config-data/website-settings-config-data"

  export default{
    data(){
      return {
        website_settings_config_data: website_settings_config_data.website_settings_menu_data
      }
    },
    components: {},
    computed: {

    }
  }

</script>


    

Mar.05,2021

found the problem. It turns out that this line is not bound : name :

<MenuItem v-for="(child, k) in group.children" name="child.name">{{child.name}}</MenuItem>


ask how the menu on the left is updated asynchronously after clicking on the menu above, that is, the menu on the left needs to be re-rendered after obtaining data. How should it be implemented? Hope for advice!

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