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

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