1.要實(shí)現(xiàn)路由跳轉(zhuǎn),先要在el-menu標(biāo)簽上添加router屬性,然后只要在每個(gè)el-menu-item標(biāo)簽內(nèi)的index屬性設(shè)置一下url即可實(shí)現(xiàn)點(diǎn)擊el-menu-item實(shí)現(xiàn)路由跳轉(zhuǎn)。 2.導(dǎo)航當(dāng)前項(xiàng),在el-menu標(biāo)簽中綁定 :default-active="$route.path",注意是綁定屬性,不要忘了加“:”,當(dāng)$route.path等于el-menu-item標(biāo)簽中的index屬性值時(shí)...
www.dbjr.com.cn/article/1276...htm 2025-6-4