refactor ts

This commit is contained in:
LiuHao
2023-04-02 01:01:56 +08:00
parent 5c87f1cb2c
commit 251d2411f2
264 changed files with 15432 additions and 13015 deletions

24
src/plugins/index.ts Normal file
View File

@ -0,0 +1,24 @@
import modal from './modal';
import tab from './tab';
import download from './download';
import cache from './cache';
import auth from './auth';
import { App } from 'vue';
export default function installPlugin(app: App) {
// 页签操作
app.config.globalProperties.$tab = tab;
// 模态框对象
app.config.globalProperties.$modal = modal;
// 缓存对象
app.config.globalProperties.$cache = cache;
// 下载文件
app.config.globalProperties.$download = download;
// 认证对象
app.config.globalProperties.$auth = auth;
}