Appearance
常用 API
接口请求
详细可阅读《与服务端交互 - 接口请求》。
ts
import api from '@/api'
api.get()
api.post()
事件总线
基于 mitt 简单封装,使用方法请查阅官方文档。
ts
import eventBus from '@/utils/eventBus'
eventBus.on()
eventBus.emit()
eventBus.off()
日期
基于 dayjs 简单封装,使用方法请查阅官方文档。
ts
import dayjs from '@/utils/dayjs'
dayjs()