mirror of
https://github.com/marktext/marktext.git
synced 2025-05-04 02:30:48 +08:00
handle clean up
This commit is contained in:
parent
af8c17cf37
commit
07a014e891
@ -931,9 +931,9 @@ export default {
|
||||
} catch (err) {
|
||||
log.error(err)
|
||||
notice.notify({
|
||||
title: 'Export HTML',
|
||||
title: 'Printing/Exporting failed',
|
||||
type: 'error',
|
||||
message: `There is something wrong when export ${htmlTitle || 'html'}`
|
||||
message: `There is something wrong when export ${htmlTitle || 'html'}.`
|
||||
})
|
||||
}
|
||||
break
|
||||
@ -959,10 +959,11 @@ export default {
|
||||
} catch (err) {
|
||||
log.error(err)
|
||||
notice.notify({
|
||||
title: 'Export PDF',
|
||||
title: 'Printing/Exporting failed',
|
||||
type: 'error',
|
||||
message: `There is something wrong when export ${htmlTitle || 'PDF'}`
|
||||
message: `There is something wrong when export ${htmlTitle || 'PDF'}.`
|
||||
})
|
||||
this.handlePrintServiceClearup()
|
||||
}
|
||||
break
|
||||
}
|
||||
@ -982,10 +983,11 @@ export default {
|
||||
} catch (err) {
|
||||
log.error(err)
|
||||
notice.notify({
|
||||
title: 'Printing',
|
||||
title: 'Printing/Exporting failed',
|
||||
type: 'error',
|
||||
message: `There is something wrong when print ${htmlTitle || ''}`
|
||||
message: `There is something wrong when print ${htmlTitle || ''}.`
|
||||
})
|
||||
this.handlePrintServiceClearup()
|
||||
}
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user