fix 处理{{}}

This commit is contained in:
Wang Kejun 2022-06-01 11:34:55 +08:00
parent 168d15f283
commit 7d6f1c63cc
1 changed files with 4 additions and 1 deletions

View File

@ -216,9 +216,12 @@ module.exports = async function (content) {
`,${CURRENT_LOCALE_KEY},${CURRENT_LOCALE_DATA} || ''` +
end +
'}}';
} else if (ele) {
} else if (ele && ele.indexOf("{{") !== -1) {
newVal += ele + '}}';
}
else {
newVal += ele;
}
});
node.deleteData(0, node.nodeValue.length);
node.insertData(0, newVal);