From 1ee97a6523ce8c9c06ccc5e8d0f0379b7c7bce7d Mon Sep 17 00:00:00 2001 From: qiang Date: Thu, 14 Nov 2019 20:24:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3H5=E7=AB=AFuni.getImag?= =?UTF-8?q?eInfo=E8=8E=B7=E5=8F=96=E6=9C=AC=E5=9C=B0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=BF=A1=E6=81=AFpath=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/h5/service/api/media/get-image-info.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/platforms/h5/service/api/media/get-image-info.js b/src/platforms/h5/service/api/media/get-image-info.js index 2c435c9ec..78039eff1 100644 --- a/src/platforms/h5/service/api/media/get-image-info.js +++ b/src/platforms/h5/service/api/media/get-image-info.js @@ -1,5 +1,3 @@ -import getRealPath from 'uni-platform/helpers/get-real-path' - function _getServiceAddress () { return window.location.protocol + '//' + window.location.host } @@ -11,7 +9,7 @@ export function getImageInfo ({ invokeCallbackHandler: invoke } = UniServiceJSBridge const img = new Image() - const realPath = getRealPath(src) + const realPath = src img.onload = function () { invoke(callbackId, { errMsg: 'getImageInfo:ok', @@ -26,4 +24,4 @@ export function getImageInfo ({ }) } img.src = src -} +} -- GitLab