fix(oa): update mobile print button toasts for PDF export
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
fb625253f6
commit
5c10b207d2
1 file changed
+2
-7
@@ -381,15 +381,10 @@ async function onPrint() {
|
||||
'-'
|
||||
const result = await exportOaApprovalPdf(detail.value, { printerName })
|
||||
if (!result?.ok) {
|
||||
showToast(
|
||||
result?.message ||
|
||||
'当前环境无法调起打印,请用手机浏览器打开或到电脑端导出'
|
||||
)
|
||||
showToast(result?.message || '导出 PDF 失败')
|
||||
}
|
||||
} catch (e) {
|
||||
showToast(
|
||||
e?.message || '当前环境无法调起打印,请用手机浏览器打开或到电脑端导出'
|
||||
)
|
||||
showToast(e?.message || '导出 PDF 失败')
|
||||
} finally {
|
||||
printing.value = false
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user