增加注册强制邀请码开关、微信内登录自动获取openid开关

This commit is contained in:
孟帅
2023-05-15 10:17:04 +08:00
parent a1ca9bfafc
commit 6187fedd4e
26 changed files with 157 additions and 96 deletions

View File

@@ -41,3 +41,11 @@ export function getFileExt(fileName: string) {
}
return fileName.substring(fileName.lastIndexOf('.') + 1);
}
/**
* 获取当访问的url不含参数
*/
export function getNowUrl(): string {
const w = window.location;
return w.protocol + '//' + w.host + w.pathname;
}