同步 ERP 经营办理与验收站工具、MES 制造执行及 PLM 页面更新
This commit is contained in:
8
build/8031-service-loader.js
Normal file
8
build/8031-service-loader.js
Normal file
@@ -0,0 +1,8 @@
|
||||
'use strict'
|
||||
|
||||
// 普通 ERP 通讯由站点转发到 8030,受信员工处理程序仍使用同源 /submit。
|
||||
module.exports = function configureErpGateway(source) {
|
||||
const declaration = /^([ \t]*(?:var|let|const) url\s*=).*$/gm
|
||||
if ((source.match(declaration) || []).length !== 1) throw new Error('请核对主通讯变量 url 的声明')
|
||||
return source.replace(declaration, "$1 window.location.origin + '/erp-service'")
|
||||
}
|
||||
Reference in New Issue
Block a user