fix(oa): update mobile print button toasts for PDF export

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-13 11:00:09 +08:00
1 parent fb625253f6
commit 5c10b207d2
1 file changed
+2 -7
+2 -7
View File
@@ -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
}