精简私信记录时间显示
This commit is contained in:
@@ -121,6 +121,17 @@ export function userCardComponent() {
|
||||
return operatorPositionRank >= targetPositionRank;
|
||||
},
|
||||
|
||||
/** 格式化私信记录时间,只保留到秒。 */
|
||||
formatWhisperTime(value) {
|
||||
if (!value) {
|
||||
return "";
|
||||
}
|
||||
|
||||
const normalizedValue = String(value).replace("T", " ").replace(/\.\d+Z?$/, "").replace(/Z$/, "");
|
||||
|
||||
return normalizedValue.slice(0, 19);
|
||||
},
|
||||
|
||||
/** 返回名片资产字段的中文名称。 */
|
||||
assetValueLabel(asset) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user