fix moduleJson profile parse issue

Signed-off-by: sunfei <sunfei.sun@huawei.com>
Change-Id: I1ff19524caec7539950f6f6f93265e4422ffdf53
This commit is contained in:
sunfei
2022-04-26 14:40:03 +08:00
parent 33622195dd
commit 3b95b04893
+1 -1
View File
@@ -352,7 +352,7 @@ void UIContentImpl::CommonInitialize(OHOS::Rosen::Window* window, const std::str
auto hapInfo = context->GetHapModuleInfo();
if (hapInfo) {
pageProfile = hapInfo->pages;
const std::string profilePrefix = "@profile:";
const std::string profilePrefix = "$profile:";
if (pageProfile.compare(0, profilePrefix.size(), profilePrefix) == 0) {
pageProfile = pageProfile.substr(profilePrefix.length()).append(".json");
}