| | |
| | | import * as Common from '@/common/utils/commonHelper.js' |
| | | //本地存储封装 |
| | | import * as Db from '@/common/utils/dbHelper.js' |
| | | import * as util from '@/common/utils/util.js' |
| | | //全局常量配置 |
| | | import * as GlobalConstVars from '@/common/setting/constVarsHelper.js' |
| | | import * as Http from '@/common/request/http.api.js' |
| | |
| | | import { createSSRApp } from 'vue' |
| | | import { createI18n } from 'vue-i18n' |
| | | const i18n = createI18n(i18nConfig) |
| | | import { initRequest } from './util/request/index' |
| | | import { initRequest } from './common/request/request.js' |
| | | |
| | | // 设置uview-plus配置 |
| | | setConfig({ |
| | |
| | | |
| | | // 引入请求封装 |
| | | initRequest(app) |
| | | |
| | | // require('@/common/request/request')(app) |
| | | app.use(store) |
| | | .use(i18n) |
| | | .use(uviewPlus) |
| | | app.config.globalProperties.$upload = Upload; |
| | | app.config.globalProperties.$common = Common; |
| | | app.config.globalProperties.$db = Db; |
| | | app.config.globalProperties.$util = util.default |
| | | app.config.globalProperties.$globalConstVars = GlobalConstVars; |
| | | app.config.globalProperties.$api = Http; |
| | | // #ifdef MP |