集成旋转底座、机械臂示教与坐标系,完善扫描参数、电量和框架点复用。增加组合执行、步骤进度与日志,优化首屏和流程画布性能,修复表头主题适配,并保留验证脚本和回归测试。
15 lines
861 B
JavaScript
15 lines
861 B
JavaScript
// Isolated configuration widgets: metadata and validation only. Every other operation fails closed.
|
|
// Real server validation is covered separately by the authenticated HTTP regression suite.
|
|
import request from '/src/cmvr/request.ts'
|
|
request.defaults.adapter = async config => {
|
|
const method = (config.method || 'get').toLowerCase()
|
|
const path = config.url || ''
|
|
if (method === 'get' && ['/scanner/configuration', '/rotary-base/configuration'].includes(path)) {
|
|
return { data: { code: 200, data: { configured: false } }, status: 200, statusText: 'OK', headers: {}, config }
|
|
}
|
|
if (method === 'post' && ['/scanner/validate', '/rotary-base/validate'].includes(path)) {
|
|
return { data: { code: 200, data: true }, status: 200, statusText: 'OK', headers: {}, config }
|
|
}
|
|
throw new Error('Device operations are disabled in component fixtures')
|
|
}
|