main.js 745 Bytes
import Vue from 'vue'
import App from './App'
import config from '@/config.js'
import store from '@/store';
import api from './api/index'
import { Storage } from './utils/cache/index'
import GlsxImage from './components/GlsxImage'
Vue.component('GlsxImage', GlsxImage)
uni.$api = api
uni.$storage = new Storage()
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$ossDomain = config.OSS_DOMAIN;
import './router'

// 引入uView
import uView from 'uview-ui'
Vue.use(uView);
const app = new Vue({
	store,
	...App
})

// http拦截器
import httpInterceptor from '@/utils/http.interceptor.js'
Vue.use(httpInterceptor, app)

// http接口API集中管理
import httpApi from '@/utils/http.api.js'
Vue.use(httpApi, app)

app.$mount()