重构代码.

This commit is contained in:
lijiahangmax
2023-09-25 00:07:51 +08:00
parent 024a8b4596
commit f8cc8c4233
16 changed files with 18 additions and 17 deletions

View File

@@ -60,7 +60,6 @@
config.value[s.type] = s;
});
} catch ({ message }) {
// FIXME
Message.error(`配置加载失败 ${message}`);
setVisible(false);
} finally {

View File

@@ -158,7 +158,7 @@
version: undefined,
});
const formRef = ref<any>();
const formRef = ref();
const formModel = reactive<HostSshConfig & Record<string, any>>({
username: undefined,
port: undefined,

View File

@@ -76,7 +76,7 @@
};
};
const formRef = ref<any>();
const formRef = ref();
const formModel = reactive<HostUpdateRequest & Record<string, any>>(defaultForm());
const emits = defineEmits(['added', 'updated']);