提交 2a823a45 编写于 作者: D DCloud_LXH

chore: lint

上级 511c004c
......@@ -110,7 +110,7 @@ export const request = {
}
}
export const configMTLS = {
export const configMTLS = {
certificates: {
type: Array,
required: true,
......@@ -120,4 +120,4 @@ export const configMTLS = {
}
}
}
}
\ No newline at end of file
}
......@@ -59,11 +59,11 @@ export function chooseImage ({
const camera = plus.camera.getCamera()
camera.captureImage(path => successCallback([path]),
errorCallback, {
filename: TEMP_PATH + '/camera/',
resolution: 'high',
crop,
sizeType
})
filename: TEMP_PATH + '/camera/',
resolution: 'high',
crop,
sizeType
})
}
function openAlbum () {
......
......@@ -193,22 +193,22 @@ export function operateRequestTask ({
}
}
export function configMTLS ({certificates}, callbackId) {
export function configMTLS ({ certificates }, callbackId) {
const stream = requireNativePlugin('stream')
stream.configMTLS(certificates, ({type, code, message}) => {
stream.configMTLS(certificates, ({ type, code, message }) => {
switch (type) {
case 'success':
invoke(callbackId, {
errMsg: 'configMTLS:ok',
code
})
break;
break
case 'fail':
invoke(callbackId, {
errMsg: 'configMTLS:fail ' + message,
code
})
break;
break
}
});
}
\ No newline at end of file
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册