mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 16:27:33 +00:00
fix
This commit is contained in:
parent
74de886231
commit
0aec4dc56a
@ -28,6 +28,7 @@ limitations under the License. -->
|
|||||||
class="mr-5 cp"
|
class="mr-5 cp"
|
||||||
iconName="remove_circle_outline"
|
iconName="remove_circle_outline"
|
||||||
size="middle"
|
size="middle"
|
||||||
|
v-show="conditionsList.length !== 1"
|
||||||
@click="removeConditions($event, index)"
|
@click="removeConditions($event, index)"
|
||||||
/>
|
/>
|
||||||
<Icon
|
<Icon
|
||||||
@ -113,6 +114,9 @@ function createConditions(e: any) {
|
|||||||
|
|
||||||
function removeConditions(e: any, key: number) {
|
function removeConditions(e: any, key: number) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
if (conditionsList.value.length === 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
conditionsList.value = conditionsList.value.filter(
|
conditionsList.value = conditionsList.value.filter(
|
||||||
(_, index: number) => index !== key
|
(_, index: number) => index !== key
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user