需要修改两个地方:
1.router.js文件
//添加hidden:true和parentPath:'/goods_list'这两处
{path: '/add_new_goods',component: AddNewGoods , name:'添加新商品', meta: {hidden:true,accessType: 3,parentPath:'/goods_list'}},
2.GoodsList.vue文件(需要添加按钮的文件)
<router-link :to="{path: '/add_new_goods'}" style="margin-right:20px;">
<el-button type="primary">添加新商品</el-button>
</router-link>