Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit ebbde60

Browse files
authored
Merge pull request #256 from mmagi/feat_bot
fix: fix known bugs in feat_bot
2 parents 3cd48ee + 1f92306 commit ebbde60

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

src/components/TestSuiteUpdate.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ const testSuite = ref({
7272
projectId: route.params.projectId,
7373
devices: [],
7474
testCases: [],
75+
alertRobotIds: null,
7576
});
7677
const deviceData = ref([]);
7778
const deviceDataBack = ref([]);
@@ -139,7 +140,6 @@ const removeFromPublic = (e) => {
139140
const getSource = () => {
140141
getDevice();
141142
getTestCaseList();
142-
getAlertRobots();
143143
};
144144
const emit = defineEmits(['flush']);
145145
const summit = () => {
@@ -186,6 +186,7 @@ onMounted(() => {
186186
if (props.suiteId !== 0) {
187187
getSuiteInfo(props.suiteId);
188188
}
189+
getAlertRobots();
189190
});
190191
</script>
191192

src/views/Devices.vue

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ const openHub = () => {
140140
};
141141
watch(dialogAgent, (newValue, oldValue) => {
142142
if (!newValue) {
143-
agent.value = {
144-
id: 0,
145-
name: '',
146-
highTemp: 45,
147-
highTempTime: 15,
148-
robotSecret: '',
149-
robotToken: '',
143+
agent.value = {
144+
id: 0,
145+
name: '',
146+
highTemp: 45,
147+
highTempTime: 15,
148+
robotSecret: '',
149+
robotToken: '',
150150
robotType: 1,
151151
};
152152
}
@@ -1012,12 +1012,15 @@ onUnmounted(() => {
10121012
<span style="margin-left: 10px">min</span>
10131013
</el-form-item>
10141014
<el-form-item prop="alertRobotIds" :label="$t('agent.ui.alertRobotIds')">
1015-
<span>{{ $t('agent.ui.defaultAlertRobotIds') }}</span>
1016-
<el-switch
1017-
v-model="agent.alertRobotIds"
1015+
<el-checkbox
1016+
:label="$t('agent.ui.defaultAlertRobotIds')"
1017+
:checked="agent.alertRobotIds == null"
10181018
class="mb-2"
1019-
:inactive-value="[]"
1020-
:active-value="null"
1019+
@change="
1020+
(auto) => {
1021+
agent.alertRobotIds = auto ? null : [];
1022+
}
1023+
"
10211024
/>
10221025
<template v-if="agent.alertRobotIds != null">
10231026
<el-select

0 commit comments

Comments
 (0)