# 介绍

提示

公告方法都在这里,使用公共方法请这里查找你需要的方法,这里有详细的使用介绍哦

公共方法目录结构

├── common                                          /公共模块
    ├── api                                           /请求模块
        ├── index.js                                    http请求入口
        ├── request.js                                  http请求封装
        ├── url.js                                      api统一管理文件
    ├── filter                                        /过滤器
        ├── index.js                                    全局过滤器
    ├── function                                      /常用函数
        ├── debounce.js                                 防抖函数
        ├── deepClone.js                                深度克隆
        ├── throttle.js                                 节流函数
        ├── timeFormat.js                               日期格式化
        ├── timeFrom.js                                 计算多久以前
    ├── minix                                         /常用混入
        ├── index.js                                    全局混入
        ├── paging_list.js                              上拉加载,下拉刷新,有需要的地方单独混入
    ├── utils                                         /公共方法
        ├── index.js                                    入口文件
        ├── message.js                                  toast弹窗
        ├── richText.js                                 富文本解析
        ├── router.js                                   路由
        ├── upload-file-to-oss.js                       上传文件至阿里OSS
        ├── upload-file-to-qiniu.js                     上传文件至七牛云
        ├── upload-image.js                             上传图片至服务器
        ├── utils.js                                    挂载在Vue.$util 上的一些方法(utils.js只作为入口文件)
        └── validate.js                                 验证
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26