提交 39598c6c 编写于 作者: fxy060608's avatar fxy060608

fix(mp): multi event in v-for

上级 ad038a28
...@@ -123,7 +123,7 @@ module.exports = function generate (ast, state) { ...@@ -123,7 +123,7 @@ module.exports = function generate (ast, state) {
const replaceCodes = state.options.replaceCodes const replaceCodes = state.options.replaceCodes
if (replaceCodes) { if (replaceCodes) {
Object.keys(replaceCodes).forEach(key => { Object.keys(replaceCodes).forEach(key => {
code = code.replace(key, replaceCodes[key]) code = code.replace(new RegExp(key.replace('$', '\\$'), 'g'), replaceCodes[key])
}) })
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册