import App from './App'
|
|
// #ifndef VUE3
|
import Vue from 'vue'
|
import './uni.promisify.adaptor'
|
// #ifdef H5
|
import Vconsole from 'vconsole';
|
new Vconsole();
|
// #endif
|
|
|
import uView from '@/uni_modules/uview-ui'
|
import util from '@/common/util.js'
|
|
Vue.use(uView);
|
Vue.config.productionTip = false
|
App.mpType = 'app'
|
Vue.prototype.$util = util
|
Vue.prototype.sessionToken = function () {
|
let token = uni.getStorageSync("sessionToken")
|
return util.isBlank(token) ? '' : token
|
}
|
const app = new Vue({
|
...App
|
})
|
require('@/common/http.interceptor')(app)
|
app.$mount()
|
// #endif
|
|
// #ifdef VUE3
|
import { createSSRApp } from 'vue'
|
export function createApp() {
|
const app = createSSRApp(App)
|
return {
|
app
|
}
|
}
|
// #endif
|