(pageName: string, id: string)
| 49 | }; |
| 50 | |
| 51 | const getIndexById = (pageName: string, id: string) => { |
| 52 | if (!pageName) pageName = currentRoutePath.value; |
| 53 | const items = getPageLayoutConfig(pageName); |
| 54 | return items.findIndex((item) => item.id === id); |
| 55 | }; |
| 56 | |
| 57 | const getCardById = (pageName: string, id: string) => { |
| 58 | if (!pageName) pageName = currentRoutePath.value; |
no test coverage detected