fix: 虚拟机模块
Build and Deploy Vue3 / build (push) Successful in 1m26s
Build and Deploy Vue3 / deploy (push) Successful in 3m5s

This commit is contained in:
2026-04-16 13:22:39 +08:00
parent f53f63e679
commit 985412c3bc
5 changed files with 206 additions and 57 deletions
+8
View File
@@ -184,6 +184,9 @@
<span style="font-size:12px;color:#909399;margin-left:8px">0 表示不创建</span>
</div>
</el-form-item>
<el-alert type="warning" :closable="false" show-icon style="margin-top:4px">
<template #title>系统盘建议不低于 30 GB,否则可能无法重装 Windows 系统</template>
</el-alert>
</div>
<div class="tk-section">
@@ -775,6 +778,11 @@ const submitCreate = () => {
createFormRef.value?.validate(async (valid) => {
if (!valid) return
if (createForm.system_size > 0 && createForm.system_size < 30) {
try {
await ElMessageBox.confirm('系统盘小于 30 GB,可能无法正常重装 Windows 系统,是否继续?', '系统盘容量提示', { type: 'warning', confirmButtonText: '继续创建', cancelButtonText: '返回修改' })
} catch { return }
}
submitLoading.value = true
try {
const fd = new FormData()