import App from './App' import store from './store' import dd from '@/static/dd.js' import moment from "moment" // #ifndef VUE3 import Vue from 'vue' import Http from './common/js/http.js' // main.js import uView from "uview-ui" Vue.use(uView) Vue.prototype.$api = Http; Vue.config.productionTip = false Vue.prototype.$store = store Vue.prototype.$backgroundAudioData = { playing: false, playTime: 0, formatedPlayTime: '00:00:00' } Vue.prototype.$dd = dd Vue.prototype.$moment=moment window.wx = {} App.mpType = 'app' const app = new Vue({ store, ...App }) app.$mount() // #endif // window.addEventListener("popstate", function(e) { // // self.location.reload(); // if (event.persisted) {} else { // location.reload(); // } // }, false); // #ifdef VUE3 import { createSSRApp } from 'vue' export function createApp() { const app = createSSRApp(App) app.use(store) app.config.globalProperties.$adpid = "1111111111" app.config.globalProperties.$backgroundAudioData = { playing: false, playTime: 0, formatedPlayTime: '00:00:00' } return { app } } // #endif