|
|
@ -383,8 +383,8 @@ export default { |
|
|
|
previewSchedule ({ state }, payload) { |
|
|
|
previewSchedule ({ state }, payload) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
io.post(`projects/${state.projectName}/schedule/preview`, payload, res => { |
|
|
|
io.post(`projects/${state.projectName}/schedule/preview`, payload, res => { |
|
|
|
//resolve(res)
|
|
|
|
resolve(res.data) |
|
|
|
alert(res.data) |
|
|
|
//alert(res.data)
|
|
|
|
}).catch(e => { |
|
|
|
}).catch(e => { |
|
|
|
reject(e) |
|
|
|
reject(e) |
|
|
|
}) |
|
|
|
}) |
|
|
|