fix: 修复星座查询前端日期类型问题

- picker返回的e.detail.value是字符串类型
- 使用parseInt转换为数字,避免字符串拼接导致月份错误
- 例如: '1' + 1 = '11' (错误), parseInt('1') + 1 = 2 (正确)
This commit is contained in:
H1d3rOne committed 2026-03-08 02:49:04 +08:00
1 parent f0a0c5b08a
commit aeff65256d
1 file changed
+2 -2
@@ -75,10 +75,10 @@ export default {
},
methods: {
onMonthChange(e) {
this.monthIndex = e.detail.value
this.monthIndex = parseInt(e.detail.value)
},
onDayChange(e) {
this.dayIndex = e.detail.value
this.dayIndex = parseInt(e.detail.value)
},
getXingZuoIcon(name) {
const icons = {