refactor: move cardlayer to just load store

This commit is contained in:
2026-02-28 13:31:27 +08:00
parent 5c26fa407d
commit 9d189bd842
4 changed files with 24 additions and 36 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ export function processVariables<T extends JSONObject> (body: string, currentRow
const frontMatter = csv.frontmatter;
if(key in row) return row[key];
if(frontMatter && key in frontMatter) return frontMatter[key];
return '';
return `{{${key}}}`;
}
return body.replace(/\{\{(\w+)\}\}/g, (_, key) => `${replaceProp(key)}`);