Vue warn: Unhandled error during execution of render function
Err: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘hour’)
- 报了一堆Element-plus的错,找了半天el都没发现什么问题,然后点进console爆红的sources
- 应该是使用了日期时间的问题。因为后台写的API要求时间必须有值,所以给时间赋了初值"00:00:00",不符合date类型格式要求。
- 解决:到后台直接改了接口。