(pageName: string)
| 10 | const globalLayoutConfig = ref<LayoutWithRouter[]>(getAllLayoutConfig()); |
| 11 | |
| 12 | const getPageLayoutConfig = (pageName: string) => { |
| 13 | if (!pageName) pageName = currentRoutePath.value; |
| 14 | const res = globalLayoutConfig.value.find((item) => item.page === pageName)?.items; |
| 15 | return res ? res : []; |
| 16 | }; |
| 17 | |
| 18 | const deleteLayoutItem = (pageName: string, id: string) => { |
| 19 | if (!pageName) pageName = currentRoutePath.value; |
no outgoing calls
no test coverage detected