()
| 128 | |
| 129 | // 退出登录(切换到默认账户) |
| 130 | export async function logout(): Promise<void> { |
| 131 | const defaultId = getDefaultAccountId() |
| 132 | const { account } = stores |
| 133 | |
| 134 | if (account.currentAccountId !== defaultId) { |
| 135 | await switchAccount(defaultId) |
| 136 | } |
| 137 | } |
no test coverage detected