You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
553 B
TypeScript

3 years ago
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;
3 years ago
// 模态框对象
app.config.globalProperties.$modal = modal;
3 years ago
// 缓存对象
app.config.globalProperties.$cache = cache;
3 years ago
// 下载文件
app.config.globalProperties.$download = download;
3 years ago
// 认证对象
app.config.globalProperties.$auth = auth;
3 years ago
}