Browse Source

Merge pull request #3317 in VISUAL/fineui from DEC/fineui:release/11.0 to master

* commit '4b6370326ce09197339980235051dfe3c79b881e':
  BI-119441 公式输入字符页面崩溃
master
Aeolus.Zhang-张敬峥 2 years ago
parent
commit
1b8b388f03
  1. 4
      src/core/utils/chinesePY.js

4
src/core/utils/chinesePY.js

@ -425,6 +425,10 @@
BI._.extend(BI, {
makeFirstPY: function (str, options) {
options = options || {};
// BI-119441 长字段搜索分叉后数量达百万级,这里控制下字段过长的话不进行多音字分叉
if (str.length > 100 && BI.isNull(options.ignoreMulti)) {
options.ignoreMulti = true;
}
if (typeof (str) !== "string") {return "" + str;}
var arrResult = []; // 保存中间结果的数组
for (var i = 0, len = str.length; i < len; i++) {

Loading…
Cancel
Save