mirror of https://github.com/msgbyte/tailchat
feat: 增加根路由注册
parent
5814c1f795
commit
20537788d6
@ -0,0 +1,6 @@
|
||||
/**
|
||||
* 获取当前页面的search参数
|
||||
*/
|
||||
export function getSearchParam(param: string): string | null {
|
||||
return new URLSearchParams(window.location.search).get(param);
|
||||
}
|
Loading…
Reference in New Issue