1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import Vue from 'vue'
- import App from './App.vue'
- import {router} from './router/index'
- import store from './store/index'
- import { Tabbar,TabbarItem,NavBar,Toast,Dialog,Uploader,ActionSheet,Field,Popup,Collapse,CollapseItem,RadioGroup,Radio,Button,Swipe,SwipeItem} from 'vant'
- import 'element-ui/lib/theme-chalk/index.css';
- import "./assets/css/reset.css"
- import "./styles/public.css"
- import http from "@/utils/http";
- import ElementUI from 'element-ui';
- import * as echarts from "echarts"
- import jm from 'vue-jsmind'
- Vue.use(jm)
- if (window.jsMind) {
- console.log('wind')
- Vue.prototype.jsMind = window.jsMind
- }
- Vue.prototype.$echarts = echarts
- ElementUI.Dialog.props.lockScroll.default = false;
- Vue.use(ElementUI);
- Vue.prototype.$http = http;
- Vue.prototype.bus=new Vue();
- Vue.use(Tabbar).use(TabbarItem).use(NavBar).use(Toast).use(Dialog).use(Uploader).use(ActionSheet);
- Vue.use(Field).use(Popup).use(Collapse).use(CollapseItem).use(RadioGroup).use(Radio).use(Button).use(Swipe).use(SwipeItem);
- Vue.config.productionTip = false;
- Toast.setDefaultOptions({ duration: 5000 });
- new Vue({
- router,
- store,
- render: h => h(App)
- }).$mount('#app');
- router.afterEach((to,from,next) => {
- // if (to.fullPath) {
- // }
- });
|