This commit is contained in:
Qiuxia Fan 2022-04-24 15:24:17 +08:00
parent f349976c71
commit 94b0288078
3 changed files with 4 additions and 3 deletions

View File

@ -134,6 +134,7 @@ const msg = {
taskId: "Task ID", taskId: "Task ID",
triggerType: "Trigger Type", triggerType: "Trigger Type",
targetType: "Target Type", targetType: "Target Type",
ebpfTip: "Don't have process could profiling",
processSelect: "Click to select processes", processSelect: "Click to select processes",
hourTip: "Select Hour", hourTip: "Select Hour",
minuteTip: "Select Minute", minuteTip: "Select Minute",

View File

@ -133,6 +133,7 @@ const msg = {
triggerType: "触发类型", triggerType: "触发类型",
targetType: "目标类型", targetType: "目标类型",
processSelect: "点击选择进程", processSelect: "点击选择进程",
ebpfTip: "没有进程可以分析",
hourTip: "选择小时", hourTip: "选择小时",
minuteTip: "选择分钟", minuteTip: "选择分钟",
secondTip: "选择秒数", secondTip: "选择秒数",

View File

@ -76,7 +76,7 @@ limitations under the License. -->
</el-button> </el-button>
</div> </div>
</div> </div>
<div v-else>Don't have process could profiling</div> <div v-else>{{ t("ebpfTip") }}</div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from "vue"; import { ref } from "vue";
@ -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.start : time.value;
const params = { const params = {
serviceId: selectorStore.currentService.id, serviceId: selectorStore.currentService.id,
processLabels: labels.value, processLabels: labels.value,