mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-12-25 00:48:22 +01:00
Fix PDF export problem
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good
This commit is contained in:
parent
452e3c5343
commit
b10ecfc259
@ -57,9 +57,7 @@ function IndexController:pdf(...)
|
||||
print(cmd)
|
||||
local r = os.execute(cmd)
|
||||
if r then
|
||||
local mime = std.mimeOf(tmp_file)
|
||||
std.header(mime)
|
||||
std.f(tmp_file)
|
||||
std.sendFile(tmp_file)
|
||||
return false
|
||||
else
|
||||
return self:error("Sorry.Problem generate PDF file")
|
||||
|
Loading…
Reference in New Issue
Block a user