feat: 修改主机额外配置.
This commit is contained in:
@@ -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})`,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user