fix: clear token after registration

This commit is contained in:
rain
2026-07-10 16:29:31 +08:00
parent 5d195cda45
commit 66f3204349
2 changed files with 51 additions and 7 deletions
+1 -1
View File
@@ -178,7 +178,7 @@
auth: false,
body: Object.assign({ grantType: 'password', registerSource: 'PC' }, withTenant(body))
});
setToken(getTokenFromResponse(data));
clearToken();
return data;
}