style: 优化布局和交互(Loading/空状态/骨架屏)
This commit is contained in:
@@ -2306,8 +2306,8 @@ const submitSgCreate = () => {
|
||||
fd.append('name', sgCreateForm.name)
|
||||
fd.append('host_id', sgCreateForm.host_id)
|
||||
fd.append('direction', sgCreateForm.direction)
|
||||
if (sgCreateForm.lock) fd.append('lock', true)
|
||||
if (sgCreateForm.drop_all) fd.append('drop_all', true)
|
||||
fd.append('lock', sgCreateForm.lock ? 'true' : 'false')
|
||||
fd.append('drop_all', sgCreateForm.drop_all ? 'true' : 'false')
|
||||
const res = await createSecurityGroup(fd)
|
||||
if (res?.data?.code === 200) {
|
||||
ElMessage.success('创建成功')
|
||||
|
||||
Reference in New Issue
Block a user