Fix page links.

This commit is contained in:
Yang Luo
2021-04-28 22:40:21 +08:00
parent 35e482f24e
commit c26c9ba0e8
4 changed files with 60 additions and 8 deletions

View File

@ -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`);
}
}