新增对象存储/账单/保留IP页面,成本今天视图与样式收敛
CI / test (push) Successful in 42s

This commit is contained in:
2026-07-21 12:11:22 +08:00
parent d813225ac4
commit ac457282ce
91 changed files with 6672 additions and 652 deletions
@@ -44,6 +44,11 @@ const canSubmit = computed(
async function submit() {
if (props.cfgId === null || !specForm.value) return
const spec = specForm.value.buildSpec()
if (spec.reservedPublicIpId && form.count > 1) {
message.warning('保留 IP 仅支持单台创建,请把数量改为 1')
return
}
submitting.value = true
try {
const result = await createInstances(props.cfgId, {
@@ -51,7 +56,7 @@ async function submit() {
compartmentId: props.compartmentId || undefined,
displayName: form.displayName.trim(),
count: form.count,
...specForm.value.buildSpec(),
...spec,
})
// 后端 errors / instances 为空时序列化为 null,判空防炸
const ok = result.instances?.length ?? 0