1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- console.log('v2.0')
- import Vue from 'vue'
- import App from './App.vue'
- import router from './router'
- import "@/assets/style/reset.css"
- import store from "@/store/index.js"
- import Vant from 'vant'
- import 'vant/lib/index.css'
- Vue.use(Vant)
- import SlideTip from "@/components/SlideTip.vue"
- Vue.component('SlideTip', SlideTip)
- import BackBtn from "@/components/BackBtn.vue"
- Vue.component('BackBtn', BackBtn)
- Vue.config.productionTip = false
- if (process.env.NODE_ENV === 'development') {
- Vue.prototype.$publicPath = '/'
- } else if (process.env.NODE_ENV === 'production') {
- Vue.prototype.$publicPath = '/dist/'
- }
- Vue.prototype.$backEndBaseUrl = 'https://culture.4dage.com/njmuseum/'
- document.documentElement.style.fontSize = window.innerHeight * 0.025276 + 'px'
- window.addEventListener('resize', () => {
- document.documentElement.style.fontSize = window.innerHeight * 0.025276 + 'px'
- })
- document.addEventListener('touchstart', function(event) {
- if (event.touches.length > 1) {
- event.preventDefault()
- }
- }, { passive: false, capture: false })
- new Vue({
- router,
- store,
- render: h => h(App),
- }).$mount('#app')
|