🔨 主机可搜索.

This commit is contained in:
lijiahangmax
2026-02-08 00:45:00 +08:00
parent 6c3f952693
commit 9ae3855def
2 changed files with 5 additions and 3 deletions

View File

@@ -4,7 +4,8 @@
:loading="loading"
:multiple="multiple"
placeholder="请选择主机"
allow-clear />
allow-clear
allow-search />
</template>
<script lang="ts">

View File

@@ -4,7 +4,8 @@
:loading="loading"
:multiple="multiple"
placeholder="请选择监控项"
allow-clear />
allow-clear
allow-search />
</template>
<script lang="ts">
@@ -38,7 +39,7 @@
// 初始化选项
const initOptions = async () => {
setLoading(true);
setLoading(true);
try {
const hosts = await cacheStore.loadHosts(props.type);
optionData.value = hosts.filter(s => !props.status || s.status === props.status)