123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- // The Vue build version to load with the `import` command
- // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
- import Vue from 'vue'
- import App from './App'
- import router from './router'
- import store from './store'
- import { Popup } from 'vant';
- import { DatetimePicker } from 'vant';
- import { Calendar } from 'vant';
- Vue.use(Popup);
- Vue.use(DatetimePicker);
- Vue.use(Calendar);
- import 'lib-flexible'
- Vue.config.productionTip = false
- import preview from 'vue-photo-preview'
- import 'vue-photo-preview/dist/skin.css'
- Vue.use(preview)
- import AmapVue from '@amap/amap-vue'
- AmapVue.config.key = '3d9ce5fb1194cb4de7d48260eecefd00'
- Vue.use(AmapVue)
- let options = {
- fullscreenEl: false,
- }
- Vue.use(preview, options)
- router.beforeEach((to, from, next) => {
- /* 路由发生变化修改页面title */
- if (to.meta.title) {
- document.title = to.meta.title
- }
- next()
- })
- /* eslint-disable no-new */
- new Vue({
- el: '#app',
- router,
- store,
- components: { App },
- template: '<App/>'
- })
|