!295 fix bind bug "+"

Merge pull request !295 from 卡哥/bindbug
This commit is contained in:
openharmony_ci
2022-06-27 02:43:37 +00:00
committed by Gitee
+2 -1
View File
@@ -18,6 +18,7 @@ const data = require('./data')
const { DEVICE_LEVEL } = require('../lite/lite-enum')
const card = process.env.DEVICE_LEVEL === DEVICE_LEVEL.CARD
const REG_CARD_ARRAY = /(\['.+?'\])|(\[".+?"\])/g
const connectContent = `+ decodeURI('${encodeURI('')}') +`;
/**
* Check if there is data binding.
@@ -67,7 +68,7 @@ function parseExp(value, functionFlag, isValue, out, nodeLoc) {
})
}
}
let func = explist.join(card ? '' : ' + ')
let func = explist.join(card ? '' : connectContent);
if (functionFlag !== false && !card) {
func = eval('(function () {return ' + func + '})')
}