fix(接口测试): github#10172,定时同步,连续添加定时任务,导入模块没有保存到

--bug=1010046--user=郭雨琦
【ID1010046】【接口测试】github#10172,定时同步,连续添加定时任务,导入模块没有保存到
This commit is contained in:
guoyuqi 2022-01-27 14:52:47 +08:00 committed by 刘瑞斌
parent 489aaa39e0
commit a43321cad0

View File

@ -305,6 +305,12 @@ export default {
this.formData.enable = true;
url = '/api/definition/schedule/create';
}
if(!this.formData.moduleId){
console.log(this.$refs.selectTree.returnDataKeys)
if( this.$refs.selectTree.returnDataKeys.length>0){
this.formData.moduleId = this.$refs.selectTree.returnDataKeys
}
}
this.$post(url, this.formData, () => {
this.$success(this.$t('commons.save_success'));
this.$refs.taskList.search();