not support resource fast preview

Signed-off-by: lihao <lihao71@huawei.com>
Change-Id: I593def93448cdc0768edd5e7a8807228c832b5f9
This commit is contained in:
lihao
2022-03-21 15:53:50 +08:00
parent 293ca2ca0f
commit aedd4a5b2d
+2 -2
View File
@@ -466,8 +466,8 @@ std::string AceAbility::GetDefaultJSONTree()
bool AceAbility::OperateComponent(const std::string& attrsJson)
{
// fastPreview not support databind
if (attrsJson.find("this.") != std::string::npos) {
LOGE("fastPreview is not support databind,the attrsJson contains 'this.'");
if (attrsJson.find("this.") != std::string::npos || attrsJson.find("$r") != std::string::npos) {
LOGE("fastPreview is not support databind,the attrsJson contains 'this.' or '$r'");
return false;
}