open-rcs/components/content/content-interface-word.html
@@ -1029,11 +1029,14 @@ </div> <script> // API配置数据 let apiConfigs = []; // 动态加载API配置并渲染接口内容 function loadApiConfigs() { try { // 直接定义API配置数据,避免CORS错误 const apiConfigs = [ apiConfigs = [ { "apiId": "api-task-create", "name": "生成任务单", @@ -1969,6 +1972,11 @@ if (section) { section.scrollIntoView({ behavior: 'smooth' }); } } else if (event.data.type === 'getApiConfigs') { event.source.postMessage({ type: 'apiConfigs', data: apiConfigs }, '*'); } }); </script>