vue動態加載路由

const loadRouter = (roleArr = [], router = {}) => { //動態加載路由 let arr = [] roleArr.map((item) => { if (item.children.length == 0) { arr.push({ path: ‘/’ + item.path, name: item.path, component: resolve
相關文章
相關標籤/搜索