Files
douhuo-rule/main.js
2023-05-15 13:33:00 +08:00

39 lines
776 B
JavaScript

import App from './App'
// #ifndef VUE3
import Vue from 'vue';
import { router, RouterMount } from './router';
import webUni from '@/static/uni.webview.js'
import store from './store';
import uView from "uview-ui";
Vue.use(uView);
Vue.use(router)
//微信支付
Vue.prototype.$wx = require('jweixin-module')
Vue.prototype.$store = store
Vue.prototype.$webUni = webUni
Vue.config.ignoredElements = [...Vue.config.ignoredElements, 'wx-open-launch-weapp']
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef H5
RouterMount(app,router,'#app')
// #endif
// #ifdef VUE3
import {
createSSRApp
} from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif