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/, '')
}