Skip to content

Commit

Permalink
fix: handleConditionCode add check
Browse files Browse the repository at this point in the history
  • Loading branch information
Siykt committed Sep 13, 2023
1 parent f55be7a commit 5e42c40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sandbox/utils/handleConditionCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ export default function (data) {
script.textContent = `
(async () => {
function automaRefData(keyword, path = '') {
if (!keyword) return null;
if (!path) return ${propertyName}.refData[keyword];
return window.$getNestedProperties(${propertyName}.refData, keyword + '.' + path);
}
Expand Down

0 comments on commit 5e42c40

Please sign in to comment.