🔨 执行命令.

This commit is contained in:
lijiahangmax
2024-03-17 21:09:58 +08:00
parent 2abf5bcf08
commit 2819df9c31
22 changed files with 429 additions and 67 deletions

View File

@@ -18,7 +18,7 @@
</template>
<!-- 名称 -->
<template #name="{ record }">
{{ record.alias || `${record.name} (${record.code})` }}
{{ record.name }}
</template>
<!-- 编码 -->
<template #code="{ record }">

View File

@@ -145,6 +145,8 @@
// 加载主机列表
const { data } = await getCurrentAuthorizedHost('ssh');
hosts.value = data;
// 禁用别名
data.hostList.forEach(s => s.alias = undefined as unknown as string);
// 设置主机搜索选项
filterOptions.value = getAuthorizedHostOptions(data.hostList);
} catch (e) {
@@ -171,7 +173,6 @@
: list.filter(item => {
return (item.name as string)?.toLowerCase().indexOf(filterVal) > -1
|| (item.code as string)?.toLowerCase().indexOf(filterVal) > -1
|| (item.alias as string)?.toLowerCase().indexOf(filterVal) > -1
|| (item.address as string)?.toLowerCase().indexOf(filterVal) > -1;
});
}