mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-13 12:23:55 +08:00
[Other] Refactor js submodule (#415)
* Refactor js submodule * Remove change-log * Update ocr module * Update ocr-detection module * Update ocr-detection module * Remove change-log
This commit is contained in:
8
examples/application/js/web_demo/src/utils/openWindow.ts
Normal file
8
examples/application/js/web_demo/src/utils/openWindow.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
const domain = window.document.location.href.slice(
|
||||
0,
|
||||
window.document.location.href.indexOf("main")
|
||||
);
|
||||
|
||||
export function openWindow(path: string) {
|
||||
window.open(domain + path, "_blank");
|
||||
}
|
Reference in New Issue
Block a user