import Vue from 'vue'
import Router from 'vue-router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import data from '@/components/pages/data'
// 全局修改默认配置，点击空白处不能关闭弹窗
ElementUI.Dialog.props.closeOnClickModal.default = false
Vue.use(Router).use(ElementUI)

export default new Router({
    routes: [{
        path: '/',
        name: 'data',
        component: data,
        meta: {
            requireAuth: '' // 不需要鉴权
        }
    },
    ]
})
