优化商品模块,使其能自动加载扩展字段的别名

This commit is contained in:
jishenghua
2025-03-25 23:45:36 +08:00
parent ecfbd396af
commit 0a3ce706c5
7 changed files with 67 additions and 72 deletions

View File

@@ -418,14 +418,12 @@ export function replaceAll(text, checker, replacer) {
*/
export function getMpListShort(thisRows, checker, replacer) {
let mPropertyListShort = ''
let nativeNameStr = ''
let anotherNameStr = ''
for (let i = 0; i < thisRows.length; i++) {
if (thisRows[i].enabled) {
nativeNameStr += thisRows[i].nativeName + ",";
}
anotherNameStr += thisRows[i].anotherName + ",";
}
if (nativeNameStr) {
mPropertyListShort = nativeNameStr.substring(0, nativeNameStr.length - 1);
if (anotherNameStr) {
mPropertyListShort = anotherNameStr.substring(0, anotherNameStr.length - 1);
}
return mPropertyListShort
}