fix: 虚拟机模块
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user