handle clean up

This commit is contained in:
jocs 2019-11-03 10:52:28 +08:00
parent af8c17cf37
commit 07a014e891

View File

@ -931,9 +931,9 @@ export default {
} catch (err) { } catch (err) {
log.error(err) log.error(err)
notice.notify({ notice.notify({
title: 'Export HTML', title: 'Printing/Exporting failed',
type: 'error', type: 'error',
message: `There is something wrong when export ${htmlTitle || 'html'}` message: `There is something wrong when export ${htmlTitle || 'html'}.`
}) })
} }
break break
@ -959,10 +959,11 @@ export default {
} catch (err) { } catch (err) {
log.error(err) log.error(err)
notice.notify({ notice.notify({
title: 'Export PDF', title: 'Printing/Exporting failed',
type: 'error', type: 'error',
message: `There is something wrong when export ${htmlTitle || 'PDF'}` message: `There is something wrong when export ${htmlTitle || 'PDF'}.`
}) })
this.handlePrintServiceClearup()
} }
break break
} }
@ -982,10 +983,11 @@ export default {
} catch (err) { } catch (err) {
log.error(err) log.error(err)
notice.notify({ notice.notify({
title: 'Printing', title: 'Printing/Exporting failed',
type: 'error', type: 'error',
message: `There is something wrong when print ${htmlTitle || ''}` message: `There is something wrong when print ${htmlTitle || ''}.`
}) })
this.handlePrintServiceClearup()
} }
break break
} }