mirror of
https://gitee.com/dromara/orion-visor.git
synced 2026-06-10 03:07:31 +08:00
🔨 主机可搜索.
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
:loading="loading"
|
||||
:multiple="multiple"
|
||||
placeholder="请选择主机"
|
||||
allow-clear />
|
||||
allow-clear
|
||||
allow-search />
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user