perf: 聊天页面图片尺寸缩小至180px
This commit is contained in:
parent
e34fb25759
commit
d22266a947
@ -146,8 +146,8 @@ export default {
|
|||||||
imageStyle(info) {
|
imageStyle(info) {
|
||||||
const {width, height} = info;
|
const {width, height} = info;
|
||||||
if (width && height) {
|
if (width && height) {
|
||||||
let maxW = 220,
|
let maxW = 180,
|
||||||
maxH = 220,
|
maxH = 180,
|
||||||
tempW = width,
|
tempW = width,
|
||||||
tempH = height;
|
tempH = height;
|
||||||
if (width > maxW || height > maxH) {
|
if (width > maxW || height > maxH) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user