import app from '@/config/app.js'; import timeConfig from '@/config/time'; import zIndex from '@/config/zIndex.js'; import plugin from '@/config/plugin.js'; import storage from '@/utils/storage.js'; import time from '@/utils/time.js'; import ui from '@/utils/ui.js'; import upload from '@/utils/upload.js'; const $t = { zIndex, // 定位元素层级 app, // app级别的相关配置 plugin, // 插件相关配置信息 storage, // 本地存储storage封装 time, // 时间处理 timeConfig, // 时间相关配置 ui, // ui界面提示相关 chooseAndUpload: upload.chooseAndUpload, // 选择并上传单个文件相关的封装 domain: 'https://www.tall.wiki/tall3/v3.0.0/defaultwbs', }; uni.$t = $t; const install = Vue => { Vue.prototype.$t = $t; }; export default { install };