wujianwei
2025-08-15 06e83c6b0282234dc30970499972381578738da9
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
27
28
29
30
import {App} from "vue";
import tab from "@/plugins/tab";
import auth from "@/plugins/auth";
import cache from "@/plugins/cache";
import modal from "@/plugins/modal";
import download from "@/plugins/download";
import {useDict} from "@/utils/dict";
import { parseTime, resetForm, addDateRange,addDateRangeNew, handleTree, selectDictLabel } from '@/utils/ruoyi'
 
 
export default function installPlugins(app: App<Element>) {
    //页签操作
    app.config.globalProperties.$tab = tab;
    //认证对象
    app.config.globalProperties.$auth = auth;
    //缓存对象
    app.config.globalProperties.$cache = cache;
    //模态框对象
    app.config.globalProperties.$modal = modal;
    //下载文件
    app.config.globalProperties.$download = download;
    //全局方法挂载
    app.config.globalProperties.useDict = useDict;
    app.config.globalProperties.parseTime = parseTime;
    app.config.globalProperties.resetForm = resetForm;
    app.config.globalProperties.addDateRange = addDateRange;
    app.config.globalProperties.addDateRangeNew = addDateRangeNew;
    app.config.globalProperties.handleTree = handleTree;
    app.config.globalProperties.selectDictLabel = selectDictLabel;
}