clear code

This commit is contained in:
2025-04-03 01:08:37 +08:00
parent aadd8266b1
commit 43ce37b1ce
21 changed files with 269 additions and 1868 deletions

View File

@@ -119,3 +119,15 @@ const command = new Command('me')
});
program.addCommand(command);
const logoutCommand = new Command('logout').description('退出登陆').action(async () => {
try {
await queryLogin.logout();
storage.removeItem('token');
console.log('退出成功');
} catch (error) {
console.log('退出失败', error);
}
});
program.addCommand(logoutCommand);