feat: 修改主机额外配置.

This commit is contained in:
lijiahang
2023-12-25 19:03:24 +08:00
parent b2a697f6ba
commit f7cbd7b507
34 changed files with 321 additions and 59 deletions

View File

@@ -20,6 +20,7 @@
const props = defineProps({
modelValue: Number,
authorized: Boolean
});
const emits = defineEmits(['update:modelValue']);
@@ -45,7 +46,9 @@
onBeforeMount(async () => {
setLoading(true);
try {
const hostIdentities = await cacheStore.loadHostIdentities();
const hostIdentities = props.authorized
? await cacheStore.loadAuthorizedHostIdentities()
: await cacheStore.loadHostIdentities();
optionData.value = hostIdentities.map(s => {
return {
label: `${s.name} (${s.username})`,

View File

@@ -20,6 +20,7 @@
const props = defineProps({
modelValue: Number,
authorized: Boolean
});
const emits = defineEmits(['update:modelValue']);
@@ -45,7 +46,9 @@
onBeforeMount(async () => {
setLoading(true);
try {
const hostKeys = await cacheStore.loadHostKeys();
const hostKeys = props.authorized
? await cacheStore.loadAuthorizedHostKeys()
: await cacheStore.loadHostKeys();
optionData.value = hostKeys.map(s => {
return {
label: s.name,