30 lines
601 B
JavaScript
30 lines
601 B
JavaScript
import Vue from 'vue'
|
|
import App from './App'
|
|
import {httpRequest} from "./utils/request.js"
|
|
|
|
Vue.prototype.$httpRequest = httpRequest;
|
|
|
|
import config from "@/utils/config";
|
|
Vue.prototype.$config = config;
|
|
Vue.config.productionTip = false;
|
|
|
|
App.mpType = 'app'
|
|
|
|
const app = new Vue({
|
|
...App
|
|
})
|
|
// #ifdef MP-WEIXIN
|
|
import chargeDialog from 'components/charge-dialog/charge-dialog.vue'
|
|
Vue.component("charge-dialog", chargeDialog);
|
|
// #endif
|
|
app.$mount()
|
|
|
|
// #ifdef VUE3
|
|
import { createSSRApp } from 'vue'
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
return {
|
|
app
|
|
}
|
|
}
|
|
// #endif
|