函数构建成功

This commit is contained in:
ChenYi 2025-12-19 15:50:20 +08:00
parent e365da3531
commit 9d521d74a5

View File

@ -400,18 +400,17 @@ async function buildAndOpenTestScript(record: any) {
console.log('函数构建接口返回:', resp.data);
//
//
//
openTestScriptModal();
//
await nextTick();
await testScriptFormApi.setValues({
functionName: resp.data?.functionName || '',
functionCode: resp.data?.functionCode || '',
parameters: '', //
});
testResult.value = ''; //
// 使 nextTick
await nextTick();
testScriptModalApi.open();
Message.success('函数构建成功');
} catch (error) {
console.error('函数构建失败:', error);