🔨 优化保存逻辑.
This commit is contained in:
@@ -109,10 +109,13 @@
|
|||||||
|
|
||||||
// 保存主机
|
// 保存主机
|
||||||
const saveHost = async () => {
|
const saveHost = async () => {
|
||||||
|
if (!currentGroup.value?.key) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
await updateHostGroupRel({
|
await updateHostGroupRel({
|
||||||
groupId: currentGroup.value?.key as number,
|
groupId: currentGroup.value?.key,
|
||||||
hostIdList: currentGroupHost.value
|
hostIdList: currentGroupHost.value
|
||||||
});
|
});
|
||||||
Message.success('保存成功');
|
Message.success('保存成功');
|
||||||
|
|||||||
Reference in New Issue
Block a user