<div class="time">{{ formatDate(blog.updateTime) }}</div>
格式化时间老显示
date.js?t=1690877329898:3 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘getTime’)
at Proxy.formatDate (date.js?t=1690877329898:3:36)
at Proxy._sfc_render (BlogCard.vue:9:28)
at renderComponentRoot (runtime-core.esm-bundler.js:816:16)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5701:46)
at ReactiveEffect.run (reactivity.esm-bundler.js:178:19)
at instance.update (runtime-core.esm-bundler.js:5814:51)
at setupRenderEffect (runtime-core.esm-bundler.js:5822:5)
at mountComponent (runtime-core.esm-bundler.js:5612:5)
at processComponent (runtime-core.esm-bundler.js:5565:9)
at patch (runtime-core.esm-bundler.js:5040:11)
mock数据用的老师你的
使用 ChatGPT+Copilot 快速开发仿简书项目,90% 代码由 AI 生成
了解课程