[improvement][headless-fe] code stash

This commit is contained in:
tristanliu
2024-11-28 20:29:12 +08:00
parent c80794e8fc
commit b4669cf110
34 changed files with 991 additions and 664 deletions

View File

@@ -509,3 +509,9 @@ export const replaceRouteParams = (template: string, values: Record<string, stri
return values[key] !== undefined ? values[key] : match;
});
};
export function openNewPage(url: string) {
const newWindow: any = window.open();
newWindow.opener = null;
newWindow.location.href = url;
}