函数构建成功

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); console.log('函数构建接口返回:', resp.data);
// //
// openTestScriptModal();
//
await nextTick();
await testScriptFormApi.setValues({ await testScriptFormApi.setValues({
functionName: resp.data?.functionName || '', functionName: resp.data?.functionName || '',
functionCode: resp.data?.functionCode || '', functionCode: resp.data?.functionCode || '',
parameters: '', // parameters: '', //
}); });
testResult.value = ''; //
// 使 nextTick
await nextTick();
testScriptModalApi.open();
Message.success('函数构建成功'); Message.success('函数构建成功');
} catch (error) { } catch (error) {
console.error('函数构建失败:', error); console.error('函数构建失败:', error);