mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-01-11 12:41:12 +08:00
[improvement][headless-fe] code stash
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user