main.js
598 Bytes
import Vue from 'vue'
import App from './App.vue'
import { GLExternal, GLButton, GLDialog, GLTable, Table, TableColumn } from './packages/index'
import '../dist/glsx-components.css'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(GLExternal)
Vue.use(GLDialog)
Vue.use(GLTable)
Vue.use(Table)
Vue.use(TableColumn)
const permissions = {
routes: [
{ path: '/', meta: { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] } },
{ path: '/a', meta: {} }
],
routerBase: ''
}
Vue.use(GLButton, permissions)
Vue.config.productionTip = false
new Vue({
render: h => h(App)
}).$mount('#app')