1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +08:00

fix: Error run process, output is undefined. (#510)

This commit is contained in:
Edwin Betancourt 2020-06-03 16:25:26 -04:00 committed by GitHub
parent dd8baa56bf
commit 19e3690a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,7 +399,9 @@ const processControl = {
logs: logList, logs: logList,
output output
}) })
dispatch('setReportTypeToShareLink', processResult.output.reportType) if (!isEmptyValue(processResult.output)) {
dispatch('setReportTypeToShareLink', processResult.output.reportType)
}
commit('addNotificationProcess', processResult) commit('addNotificationProcess', processResult)
resolve(processResult) resolve(processResult)
}) })
@ -579,7 +581,9 @@ const processControl = {
output output
}) })
resolve(processResult) resolve(processResult)
dispatch('setReportTypeToShareLink', processResult.output.reportType) if (!isEmptyValue(processResult.output)) {
dispatch('setReportTypeToShareLink', processResult.output.reportType)
}
}) })
.catch(error => { .catch(error => {
Object.assign(processResult, { Object.assign(processResult, {