(type: string)
| 23 | }; |
| 24 | |
| 25 | export async function listNodes(type: string): Promise<Array<Setting.NodeItem>> { |
| 26 | try { |
| 27 | const res = await listNodeOptions(type); |
| 28 | return res.data || []; |
| 29 | } catch (error) { |
| 30 | return []; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | export const setDefaultNodeInfo = () => { |
| 35 | const globalStore = GlobalStore(); |
no test coverage detected