Skip to content

前端工具函数概览

工具分类

模块说明
common通用工具函数
httpHTTP 请求封装
file文件处理工具
storage本地存储封装
crypto加密工具
dict字典管理

使用方式

js
// 按需导入
import { formatDateTime, debounce } from '@/utils/common'
import { request } from '@/utils/http'
import { getFileUrl } from '@/utils/file'

// 或统一导入
import { formatDateTime, request, getFileUrl } from '@/utils'