Skip to content
Snippets Groups Projects

111111

Merged 崔用芳 requested to merge feature/cyf into dev
Compare and
1 file
+ 5
3
Compare changes
  • Side-by-side
  • Inline
@@ -605,9 +605,11 @@ export default {
}
const showpdf = async (row) => {
const res = await Common.queryFile(row.billNo);
if (res.type === 'application/pdf') {
let uri = window.URL.createObjectURL(res);
window.open(uri);
if (res.type === 'application/x-download') {
const url = window.URL.createObjectURL(
new Blob([res], { type:"application/pdf" })
);
window.open(url);
} else {
const text = await res.text();
const json = JSON.parse(text);