| | |
| | | label: propsConfig.label || 'name', |
| | | path: propsConfig.path || 'path', |
| | | icon: propsConfig.icon || 'icon', |
| | | children: propsConfig.children || 'children' |
| | | children: propsConfig.children || 'children', |
| | | } |
| | | const icon = ele[propsDefault.icon]; |
| | | ele[propsDefault.icon] = validatenull(icon) ? menu.iconDefault : icon; |
| | |
| | | |
| | | commit('SET_MENU_ALL', menu) |
| | | commit('SET_MENU', menu) |
| | | //dispatch('GetButtons');s |
| | | dispatch('GetButtons'); |
| | | resolve(menu) |
| | | }) |
| | | }) |
| | |
| | | return new Promise((resolve) => { |
| | | getButtons().then(res => { |
| | | const data = res.data.data; |
| | | console.log('getButton',data) |
| | | commit('SET_PERMISSION', data); |
| | | resolve(); |
| | | }) |
| | |
| | | Vue.set(children, child.code, true); |
| | | }); |
| | | } |
| | | Vue.set(permission_new, item.code, children); |
| | | Vue.set(permission_new, item.id, children); |
| | | }); |
| | | state.permission = permission_new; |
| | | setStore({name: "permission", content: permission_new}); |