提交 44d00d73 编写于 作者: 雪洛's avatar 雪洛

fix: 不要依赖type默认值,不要触发kotlin特性null+null = "nullnull"

上级 99dd98b7
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
day: 0, day: 0,
lunar: '', lunar: '',
disabled: false, disabled: false,
is_today: false
} as DateType } as DateType
} }
}, },
...@@ -50,7 +51,10 @@ ...@@ -50,7 +51,10 @@
}, },
current_day() : string { current_day() : string {
const time = this.timeData.data const time = this.timeData.data
return time?.IMonthCn + time?.IDayCn if (time == null) {
return ''
}
return time.IMonthCn + time.IDayCn
} }
}, },
created() { }, created() { },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册