提交 c9577694 编写于 作者: 雪洛's avatar 雪洛

fix: sendSocketMessage发送ArrayBuffer报错的Bug askId: 90434

上级 1fb70795
......@@ -84,8 +84,9 @@ function assertType (value, type) {
valid = isPlainObject(value)
} else if (expectedType === 'Array') {
valid = Array.isArray(value)
} else {
valid = value instanceof type
} else {
// TODO 页面传入的ArrayBuffer使用instanceof ArrayBuffer返回false,暂做此修改
valid = value instanceof type || toRawType(value) === getType(type)
}
return {
valid,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册