摘要: main.js Vue.directive('has', { inserted: function (el, binding, vnode) { let btnPermissions = vnode.context.$route.meta.btnPermissions if (!Vue.protot 阅读全文
posted @ 2022-08-25 15:33 番茄西红柿u 阅读(25) 评论(0) 推荐(0) 编辑
摘要: menuFormat.js(格式化路由表) export const initMenu = (data) => { let list = []; data.forEach(router => { let { path, component, name, meta, // icon, children 阅读全文
posted @ 2022-08-25 15:19 番茄西红柿u 阅读(687) 评论(0) 推荐(0) 编辑