mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-19 14:43:36 -04:00
fix moduleJson profile parse issue
Signed-off-by: sunfei <sunfei.sun@huawei.com> Change-Id: I1ff19524caec7539950f6f6f93265e4422ffdf53
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user