Commit c9e7365e authored by 郭铭瑶's avatar 郭铭瑶 🤘

移除LocalizedFormat

parent 3d8663e7
import { App, Plugin } from 'vue' import { App, Plugin } from 'vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import ch from 'dayjs/locale/zh-cn' import ch from 'dayjs/locale/zh-cn'
import LocalizedFormat from 'dayjs/plugin/LocalizedFormat'
dayjs.extend(LocalizedFormat)
dayjs.locale(ch) dayjs.locale(ch)
export const withInstall = <T>(comp: T): T & Plugin => { export const withInstall = <T>(comp: T): T & Plugin => {
......
import dayjs from 'dayjs' import dayjs from 'dayjs'
import ch from 'dayjs/locale/zh-cn' import ch from 'dayjs/locale/zh-cn'
import LocalizedFormat from 'dayjs/plugin/LocalizedFormat'
import relativeTime from 'dayjs/plugin/relativeTime' import relativeTime from 'dayjs/plugin/relativeTime'
dayjs.extend(LocalizedFormat)
dayjs.extend(relativeTime) dayjs.extend(relativeTime)
dayjs.locale(ch) dayjs.locale(ch)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment