forked from ccsens_fe/tall-mui-3
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
import app from '@/config/app.js';
|
|
import cache from '@/utils/cache.js';
|
|
import cacheAndRequest from '@/utils/cacheAndRequest.js';
|
|
import plugin from '@/config/plugin.js';
|
|
import storage from '@/utils/storage.js';
|
|
import task from '@/config/task.js';
|
|
import time from '@/utils/time.js';
|
|
import timeConfig from '@/config/time';
|
|
import ui from '@/utils/ui.js';
|
|
import upload from '@/utils/upload.js';
|
|
import user from '@/config/user.js';
|
|
import zIndex from '@/config/zIndex.js';
|
|
|
|
const gateway = process.env.VUE_APP_API_URL;
|
|
|
|
const $t = {
|
|
zIndex, // 定位元素层级
|
|
app, // app级别的相关配置
|
|
plugin, // 插件相关配置信息
|
|
storage, // 本地存储storage封装
|
|
time, // 时间处理
|
|
timeConfig, // 时间相关配置
|
|
ui, // ui界面提示相关
|
|
chooseAndUpload: upload.chooseAndUpload, // 选择并上传单个文件相关的封装
|
|
chooseAndUploadImg: upload.chooseAndUploadImg, // 选择并上传单个图片相关的封装
|
|
domain: `${gateway}/defaultwbs`,
|
|
cache, // 本地存储相关
|
|
$q: cacheAndRequest,
|
|
user, // 用户相关配置
|
|
task, // 任务相关配置
|
|
};
|
|
|
|
uni.$t = $t;
|
|
|
|
const install = Vue => {
|
|
Vue.prototype.$t = $t;
|
|
};
|
|
|
|
export default { install };
|
|
|