Files
sgxt_web/src/components/Consultation/utils/format-show-name.js
2025-12-12 15:19:45 +08:00

15 lines
356 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 按个性化设置格式化显示的名称当3K时去掉前5位的直客ID
* @param name 别名(为空时返回号码)
* @param number 用户号码
* @returns 格式化后用户看到的名称
*/
export function formatShowNameFin(name, number) {
if (name) {
return `${name}(${number})`;
}
return number;
}
export default null;