vue中的el-menu el-menu-item选中时无法改变选中项颜色

做了一个管理系统,想要利用el-menu实现跳转效果

img


即点击我的信息跳转到/homepage页面,

img


点击人员管理,跳转到/peomanage页面,
跳转效果可以正常实现,但是在跳转到人员管理页面时,显示激活的仍然是第一项“我的信息”,不知道这该怎么解决。

以下是我写的代码,求各位帮助:

<template>
  <div>
    <el-row class="tac">
                    <el-col :span="24">
                        <el-menu
                        :default-active="active_index"
                        class="el-menu-vertical-demo"
                        background-color="#545c64"
                        text-color="#fff"
                        :router=true
                        @select="handleSelect">
                            <el-menu-item index="/homepage">
                                <i class="el-icon-info"></i>
                                <span slot="title">我的信息</span>
                            </el-menu-item>
                        
                            <el-menu-item index="/peomanage">
                                <i class="el-icon-edit-outline"></i>
                                <span slot="title">人员管理</span>
                            </el-menu-item>
                        
                            <el-menu-item index="3">
                                <i class="el-icon-setting"></i>
                                <span slot="title">部门管理</span>
                            </el-menu-item>
                        </el-menu>
                    </el-col>
                    </el-row>
  </div>
</template>

<script>
export default {
    data(){
        return{
            active_index:'/homepage'
        }
    },
    methods:{
        handleSelect(key, keyPath) {
            this.active_index = key;
        }
    }
}
</script>

<style>
span {
  margin-left: 10px;
}
</style>

我试了,没毛病啊,可以跳过去

handleSelect 改成我这个

handleSelect(key, keyPath) {
        this.$router.push(key)
}