mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
Support from link.
This commit is contained in:
@ -638,3 +638,11 @@ export function getRandomName() {
|
||||
export function getRandomNumber() {
|
||||
return Math.random().toString(10).slice(-11);
|
||||
}
|
||||
|
||||
export function getFromLink() {
|
||||
const from = sessionStorage.getItem("from");
|
||||
if (from === null) {
|
||||
return "/";
|
||||
}
|
||||
return from;
|
||||
}
|
||||
|
Reference in New Issue
Block a user