This commit is contained in:
Vanessa 2022-07-27 07:17:45 +08:00
parent 74273ebc1c
commit f49dfa8273
7 changed files with 53 additions and 70 deletions

View file

@ -5,6 +5,7 @@ export const isMobile = () => {
export const getRandom = (min: number, max: number) => {
return Math.floor(Math.random() * (max - min + 1)) + min; //含最大值,含最小值
};
export const getSearch = (key: string, link = window.location.search) => {
if (link.indexOf("?") === -1) {
return "";