44 lines
738 B
JavaScript
44 lines
738 B
JavaScript
import App from './App'
|
|
|
|
import uView from "uview-ui";
|
|
Vue.use(uView);
|
|
|
|
//分享配置
|
|
import share from "./com/share.js";
|
|
Vue.mixin(share)
|
|
|
|
//网络配置
|
|
import request from "./com/http.js";
|
|
Vue.prototype.$http = request;
|
|
|
|
import utils from './utils/index'
|
|
Vue.prototype.$utils = utils
|
|
|
|
import store from './store';
|
|
Vue.prototype.$store = store;
|
|
|
|
import jssdk from '@/com/jssdk.js';
|
|
Vue.prototype.$jssdk = jssdk;
|
|
|
|
// #ifndef VUE3
|
|
import Vue from 'vue'
|
|
import './uni.promisify.adaptor'
|
|
Vue.config.productionTip = false
|
|
App.mpType = 'app'
|
|
const app = new Vue({
|
|
...App
|
|
})
|
|
app.$mount()
|
|
// #endif
|
|
|
|
// #ifdef VUE3
|
|
import {
|
|
createSSRApp
|
|
} from 'vue'
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
return {
|
|
app
|
|
}
|
|
}
|
|
// #endif
|