From 7f2f308057211b8a7e866429df32b61922aeca77 Mon Sep 17 00:00:00 2001
From: zhanghao <774378400@qq.com>
Date: Wed, 15 Apr 2026 16:33:11 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=95=B4=E4=BD=93?=
=?UTF-8?q?=E8=BF=90=E8=A1=8C=E6=97=B6=E9=95=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/flow/index.vue | 7 +++++++
vite.config.js | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/views/flow/index.vue b/src/views/flow/index.vue
index e9c8247..be8663d 100644
--- a/src/views/flow/index.vue
+++ b/src/views/flow/index.vue
@@ -8,6 +8,9 @@
+
+ {{ totalRunningTime }}ms
+
清除上一次运行结果
分组
试运行
@@ -283,6 +286,8 @@ const flowPauseFn = async () => {
}
};
+const totalRunningTime = ref(0);
+
const flowResumeFn = async () => {
const res = await flowResume(instId.value);
if (res.code === 200) {
@@ -409,6 +414,7 @@ const loopFlowView = async (instId, taskId = null) => {
if (!flowInfoData.value.isLog) {
flowStore.updateDisableForm(false);
flowState.value = "testRunFinish";
+ totalRunningTime.value = arr[arr.length - 1].endTime - arr[0].startTime
}
} else {
if (!flowInfoData.value.isLog) {
@@ -416,6 +422,7 @@ const loopFlowView = async (instId, taskId = null) => {
flowState.value = arr[arr.length - 1]?.status === "PAUSED" ? "pause" : "stop";
} else {
flowState.value = "testRunError";
+ totalRunningTime.value = arr[arr.length - 1].endTime - arr[0].startTime
flowStore.updateDisableForm(false);
}
}
diff --git a/vite.config.js b/vite.config.js
index 0b99841..f353730 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -51,7 +51,7 @@ export default defineConfig(({mode, command}) => {
//李小龙 http://192.168.0.5:13080
// dev http://10.148.20.34:13080
// target: VITE_API_URL,
- target: command === 'build' ? VITE_API_URL : 'http://192.168.0.100:13080',
+ target: command === 'build' ? VITE_API_URL : 'http://192.168.0.5:13080',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
}