智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/0b/0b72723a4af0e55adf1f932c708...

23 lines
632 B

let handleImgBase64Data=require("../utils/ImgBase64Handler")
let adapter;
if (window.dsBridge) {
adapter = function (request, responseCallBack) {
dsBridge.call("onAjaxRequest", request, function (responseData) {
responseData = JSON.parse(responseData);
if(request.responseType==="stream") {
handleImgBase64Data(responseData);
}
responseCallBack(responseData)
})
}
} else {
console.error("dsBridge is not exist!")
}
//build环境定义全局变量
KEEP("cdn||cdn-min", () => {
window.dsbAdapter = adapter
})
module.exports = adapter;