lizhouze
2022-06-25 15:30:28 +08:00
committed by 卡哥
parent 897939720b
commit 5fffce4bf7
+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 + '})')
}