Commit 60e40e41 by Jaxon

feat(商品上架): 添加车型列表格式化函数

添加 formatCar 函数,用于将车型系列名称数组截断为最多15个字符的字符串
1 parent 79a172ed
export function formatCar(list) {
const str = list.map((item) => {
return item.seriesName;
}).join(",");
return str.length > 15 ? str.substring(0, 15) + "..." : str;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!