1.防止字段为空,添加逻辑判断
This commit is contained in:
@@ -287,6 +287,7 @@
|
||||
})
|
||||
},
|
||||
preName(name) {
|
||||
if (!name) return;
|
||||
if (name === '匿名用户') return name
|
||||
if (name.length < 3) {
|
||||
return name.substring(0, 1) + '*'
|
||||
@@ -297,6 +298,7 @@
|
||||
}
|
||||
},
|
||||
preDate(d) {
|
||||
if (!d) return;
|
||||
return dayjs(d).format('HH:mm:ss');
|
||||
},
|
||||
initSwiperData() {
|
||||
|
||||
Reference in New Issue
Block a user