This commit is contained in:
Qiuxia Fan 2022-04-24 15:53:32 +08:00
parent ac5244f120
commit fd3808406d
2 changed files with 2 additions and 4 deletions

View File

@ -115,8 +115,7 @@ async function createTask() {
ElMessage.warning("no labels"); ElMessage.warning("no labels");
return; return;
} }
const date = const date = monitorTime.value === "0" ? new Date() : time.value;
monitorTime.value === "0" ? appStore.durationRow.end : time.value;
const params = { const params = {
serviceId: selectorStore.currentService.id, serviceId: selectorStore.currentService.id,
processLabels: labels.value, processLabels: labels.value,

View File

@ -150,8 +150,7 @@ function changeEndpoint(opt: any[]) {
async function createTask() { async function createTask() {
emits("close"); emits("close");
const date = const date = monitorTime.value === "0" ? new Date() : time.value;
monitorTime.value === "0" ? appStore.durationRow.start : time.value;
const params = { const params = {
serviceId: selectorStore.currentService.id, serviceId: selectorStore.currentService.id,
endpointName: endpointName.value, endpointName: endpointName.value,