(pageName: string, id: string)
| 55 | }; |
| 56 | |
| 57 | const getCardById = (pageName: string, id: string) => { |
| 58 | if (!pageName) pageName = currentRoutePath.value; |
| 59 | const items = getPageLayoutConfig(pageName); |
| 60 | return items.find((item) => item.id === id); |
| 61 | }; |
| 62 | |
| 63 | const saveGlobalLayoutConfig = async () => { |
| 64 | return await setLayoutConfig().execute({ |
no test coverage detected