刘建东 37cdd28aff 添加文档网站 (#126)
[new feature] Doc: 添加文档网站
2018-02-13 17:42:21 +08:00

27 lines
636 B
JavaScript

// 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 boot from './boot'
import SideMenu from '@/components/SideMenu'
import '@/assets/base.css'
Vue.config.productionTip = false
Vue.component('side-menu', SideMenu)
/* eslint-disable no-new */
new Vue({
el: '#app',
router: boot.router,
methods: {
getConfig (lang) {
if (!lang && !boot.config.lang) {
return boot.config
}
return boot.config.lang[lang]
}
},
components: { App },
template: '<App/>'
})