refactor: handle type pre view

This commit is contained in:
Thanaphon Frappet 2024-11-28 10:48:34 +07:00
parent 2c4508861b
commit 6f3eceb6fb

View file

@ -349,7 +349,11 @@ async function storeDataLocal(id: string) {
}),
);
window.open('/quotation/document-view', '_blank');
const url = new URL('/quotation/document-view', window.location.origin);
url.searchParams.append('type', pageState.currentTab.toLowerCase());
window.open(url, '_blank');
}
</script>