main.js
738 字节
import App from './App'
import {Shares} from '@/utils/share.js'
// #ifndef VUE3
import Vue from 'vue'
import uView from "uview-ui";
Vue.use(uView);
Vue.config.productionTip = false
Vue.prototype.$wxH5Share = Shares
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// router.beforeEach((to, from, next) => {
// var u = navigator.userAgent;
// var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
// if (isiOS && to.path !== location.pathname) {
// location.assign(to.fullPath)
// } else {
// next();
// }
// })
// #ifdef VUE3
import {
createSSRApp
} from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif