fix 处理{{}}
This commit is contained in:
parent
168d15f283
commit
7d6f1c63cc
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue