mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 11:08:38 +08:00
fix(接口定义): 修复场景定时任务提示信息重叠的问题
--bug=1017944 --user=王孝刚 【接口测试】接口自动化定时任务设置成功后点击保存,没有设置运行环境且时间间隔小于三分钟提示信息重叠 https://www.tapd.cn/55049933/s/1260577
This commit is contained in:
parent
189ee21f6a
commit
5449c9c4e9
@ -97,17 +97,8 @@
|
||||
import {saveNotice} from "@/api/notice";
|
||||
import {apiScenarioEnv, createSchedule, updateSchedule} from "@/api/scenario";
|
||||
import {getScheduleByIdAndType, scheduleUpdate} from "@/api/schedule";
|
||||
import {
|
||||
getCurrentProjectID,
|
||||
getCurrentUser,
|
||||
getCurrentWorkspaceId
|
||||
} from "metersphere-frontend/src/utils/token";
|
||||
import {
|
||||
listenGoBack,
|
||||
objToStrMap,
|
||||
removeGoBackListener,
|
||||
strMapToObj
|
||||
} from "metersphere-frontend/src/utils";
|
||||
import {getCurrentProjectID, getCurrentUser, getCurrentWorkspaceId} from "metersphere-frontend/src/utils/token";
|
||||
import {listenGoBack, objToStrMap, removeGoBackListener, strMapToObj} from "metersphere-frontend/src/utils";
|
||||
import Crontab from "metersphere-frontend/src/components/cron/Crontab";
|
||||
import CrontabResult from "metersphere-frontend/src/components/cron/CrontabResult";
|
||||
import {cronValidate} from "metersphere-frontend/src/utils/cron";
|
||||
@ -350,7 +341,9 @@ export default {
|
||||
this.intervalShortValidate();
|
||||
let formCronValue = this.form.cronValue;
|
||||
this.schedule.value = formCronValue;
|
||||
this.saveSchedule();
|
||||
setTimeout(() => {
|
||||
this.saveSchedule();
|
||||
}, 10);
|
||||
|
||||
} else {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user