Support from link.

This commit is contained in:
Yang Luo
2022-02-12 09:55:06 +08:00
parent 7391773f0e
commit 3aab6c8687
4 changed files with 15 additions and 2 deletions

View File

@ -104,7 +104,9 @@ class AuthCallback extends React.Component {
if (responseType === "login") {
Util.showMessage("success", `Logged in successfully`);
// Setting.goToLinkSoft(this, "/");
Setting.goToLink("/");
const link = Setting.getFromLink();
Setting.goToLink(link);
} else if (responseType === "code") {
const code = res.data;
Setting.goToLink(`${oAuthParams.redirectUri}?code=${code}&state=${oAuthParams.state}`);