mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
Fix page links.
This commit is contained in:
@ -18,6 +18,7 @@ import {isMobile as isMobileDevice} from "react-device-detect";
|
||||
import "./i18n";
|
||||
import i18next from "i18next";
|
||||
import copy from "copy-to-clipboard";
|
||||
import {authConfig} from "./auth/Auth";
|
||||
|
||||
export let ServerUrl = "";
|
||||
|
||||
@ -197,3 +198,15 @@ export function renderLogo(application) {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export function goToLogin(ths, application) {
|
||||
if (application === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (authConfig.appName === application.name) {
|
||||
goToLinkSoft(ths, "/login");
|
||||
} else {
|
||||
goToLink(`${application.homepageUrl}/login`);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user