refac: newChatStore to use options

This commit is contained in:
2024-10-15 14:59:10 +08:00
parent 9e74e419c9
commit af2ae82e74
3 changed files with 61 additions and 69 deletions

View File

@@ -1,6 +1,7 @@
function getDefaultParams(param: string, val: string): string;
function getDefaultParams(param: string, val: number): number;
function getDefaultParams(param: string, val: boolean): boolean;
function getDefaultParams(param: any, val: any) {
const queryParameters = new URLSearchParams(window.location.search);
const get = queryParameters.get(param);