From 5fffce4bf7cc0bc11428ea7ea253d5b3d96f0cfb Mon Sep 17 00:00:00 2001 From: lizhouze Date: Sat, 25 Jun 2022 15:30:28 +0800 Subject: [PATCH] fixed 6bacc22 from https://gitee.com/kage1/developtools_ace-js2bundle/pulls/296 fixed ef6e802 from https://gitee.com/kage1/developtools_ace-js2bundle/pulls/295 lizhouze@huawei.com Signed-off-by: lizhouze --- ace-loader/plugin/templater/bind.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ace-loader/plugin/templater/bind.js b/ace-loader/plugin/templater/bind.js index 5a3e161..1c6c9e6 100644 --- a/ace-loader/plugin/templater/bind.js +++ b/ace-loader/plugin/templater/bind.js @@ -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 + '})') }