Ant Design Vue 3日期组件报错 TypeError: clone.weekday is not a function

Aman
评论:0 阅读:1809
时间:2022-5-20 04:28:18 分类: 备忘笔记

Ant Design Vue 3日期组件在初始化赋值时 报错:TypeError: clone.weekday is not a function
解决方法

import dayjs from "dayjs";
import weekday from "dayjs/plugin/weekday"
import localeData from "dayjs/plugin/localeData"

dayjs.extend(weekday)
dayjs.extend(localeData)
标签: vue ant design

Powered by emlog pro © 主题Aman 豫ICP备16010520号-1