docs: 优化代码逻辑

This commit is contained in:
dengrongyao 2021-04-12 19:50:43 +08:00 committed by neverland
parent d82b491d29
commit 2b657446ec

View File

@ -70,7 +70,8 @@ Page({
formatter(type, value) {
if (type === 'year') {
return `${value}年`;
} else if (type === 'month') {
}
if (type === 'month') {
return `${value}月`;
}
return value;