diff --git a/web/src/view/systemTools/autoCode/index.vue b/web/src/view/systemTools/autoCode/index.vue index 2342ce425..55cd21116 100644 --- a/web/src/view/systemTools/autoCode/index.vue +++ b/web/src/view/systemTools/autoCode/index.vue @@ -849,6 +849,18 @@ const llmAutoFunc = async (flag) =>{ ElMessage.error('请输入描述') return } + + if(form.value.fields.length>0){ + const res = await ElMessageBox.confirm('AI生成会清空当前数据,是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }) + if (res !== 'confirm') { + return + } + } + const res = await llmAuto({prompt:flag?'结构体名称为'+form.value.structName:prompt.value}) if (res.code === 0) { form.value.fields = []