From c5fd4fc6c76555b688d3e4a604494702e14dd77a Mon Sep 17 00:00:00 2001 From: zero-cyc Date: Wed, 22 Sep 2021 16:28:41 +0800 Subject: [PATCH] fixed ffa5fa4 from https://gitee.com/zero-cyc/ace_ace_engine/pulls/176 chenlien@huawei.com Signed-off-by: zero-cyc Change-Id: I5fdc083294b134365d76254431727f4214440fa9 --- adapter/ohos/cpp/ace_service_ability.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter/ohos/cpp/ace_service_ability.cpp b/adapter/ohos/cpp/ace_service_ability.cpp index fe2dac385d1..57c18765adf 100644 --- a/adapter/ohos/cpp/ace_service_ability.cpp +++ b/adapter/ohos/cpp/ace_service_ability.cpp @@ -89,7 +89,7 @@ void AceServiceAbility::OnStart(const OHOS::AAFwk::Want &want) if (info != nullptr && !info->srcPath.empty()) { LOGI("AceServiceAbility::OnStar assetBasePathStr: %{public}s, parsedUrl: %{public}s", info->srcPath.c_str(), parsedUrl.c_str()); - auto assetBasePathStr = { "assets/js/default/" + info->srcPath }; + auto assetBasePathStr = { "assets/js/" + info->srcPath + "/" }; Platform::PaContainer::AddAssetPath(abilityId_, packagePathStr, assetBasePathStr); } else { LOGI("AceServiceAbility::OnStar parsedUrl: %{public}s", parsedUrl.c_str()); -- Gitee