// 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 ElementUI from 'element-ui' //引入js import 'element-ui/lib/theme-chalk/index.css' //引入css import echarts from 'echarts' Vue.config.productionTip = false Vue.prototype.$echarts = echarts import moment from "moment" Vue.prototype.moment = moment //引入公共方法 // import common from '../static/JS/common.js' // Vue.prototype.$common = common import './assets/css/common.css' import './util/interface' import nozzle from "./util/interface" Vue.prototype.nozzle = nozzle import { http } from "./api/APIindex" Vue.prototype.$http = http Vue.use(ElementUI) import Viewer from 'v-viewer' Vue.use(Viewer) Viewer.setDefaults({ zIndexInline: 9999 }) /* eslint-disable no-new */ const vue = new Vue({ el: '#app', router, components: { App }, template: '<App/>' }) // window.addEventListener('load', function () { // vue.$router.replace('/index') // 列表页面的路由 // })