From d7e2b8c18e2e92d6f8292c3ec90b7d1c786563ce Mon Sep 17 00:00:00 2001 From: duqingquan Date: Fri, 24 May 2024 12:28:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=99=A4anim-view=20=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-animation-view/utssdk/app-android/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uni_modules/uts-animation-view/utssdk/app-android/index.vue b/uni_modules/uts-animation-view/utssdk/app-android/index.vue index 8a64c41..2db7de0 100644 --- a/uni_modules/uts-animation-view/utssdk/app-android/index.vue +++ b/uni_modules/uts-animation-view/utssdk/app-android/index.vue @@ -96,7 +96,7 @@ // 正式打包会放在asset中,需要特殊处理 let realJsonPath = UTSAndroid.getResourcePath(newPath) if(realJsonPath.startsWith("/android_asset")){ - lottieAnimationView.setAnimation(realJsonPath!.substring(15)) + lottieAnimationView.setAnimation(realJsonPath.substring(15)) }else{ lottieAnimationView.setAnimation(new FileInputStream(realJsonPath),newPath) } -- GitLab