提交 47588f95 编写于 作者: DCloud_JSON's avatar DCloud_JSON

Update uni-im-img.vue

上级 dbaaa73a
......@@ -51,7 +51,7 @@ import uniIm from '@/uni_modules/uni-im/sdk/index.js';
// 如果以rpx为单位,转换为px
let maxWidth = parseInt(this.maxWidth)
if(this.maxWidth && this.maxWidth.indexOf('rpx') > -1){
maxWidth = parseInt(this.maxWidth) * uniIm.utils.getSystemInfoSync().windowWidth / 750
maxWidth = parseInt(this.maxWidth) * uniIm.systemInfo.windowWidth / 750
}
// console.log('maxWidth',maxWidth)
if(maxWidth && this.width > maxWidth){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册