Merge remote-tracking branch 'origin/master'

# Conflicts:
#	frontend/src/routers/modules/staticRouter.ts
This commit is contained in:
2024-10-11 08:51:01 +08:00
30 changed files with 3140 additions and 131 deletions

View File

@@ -79,13 +79,13 @@
>
<el-button
type="primary"
@click="handleDetection"
@click="handleTest"
v-if="form.activeTabs === 0"
>启动自动检测</el-button
>
<el-button
type="primary"
@click="handleDetection"
@click="handleTest"
v-if="form.activeTabs === 1"
>启动手动检测</el-button
>
@@ -509,12 +509,18 @@ const changeActiveTabs = (val: number) => {
form.value.activeTabs = val;
};
//启动自动检测/手动检测
const handleDetection = () => {
const handleTest = () => {
//自动检测
if (form.value.activeTabs === 0) {
ElMessage.success("自动检测");
}else{
router.push({
path: "/plan/autoTest",
});
} else {
ElMessage.warning("手动检测");
router.push({
path: "/plan/preTest",
});
}
};
onMounted(() => {