dubbo文档UI初始化

This commit is contained in:
暮光:城中城
2020-10-27 23:15:42 +08:00
parent 3048d203ff
commit ccf4196f0e
26 changed files with 12479 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import VueRouter from 'vue-router'
import routes from './routes'
import store from './store/index'
import axios from 'axios'
import VueAxios from 'vue-axios'
import vueHljs from "vue-hljs";
import "vue-hljs/dist/vue-hljs.min.css";
Vue.use(ElementUI);
Vue.use(VueRouter);
Vue.use(VueAxios, axios);
Vue.use(vueHljs);
// 公用方法
Vue.prototype.$store = store;
const router = new VueRouter({routes});
// 路由跳转时判断处理
router.beforeEach((to, from, next) => {
if (to.meta.title) {
document.title = to.meta.title;
}
store.commit('global/setFullscreen', !!to.meta.fullscreen);
next();
});
let vue = new Vue({
el: '#app',
router,
render(h) {
return h(App);
}
});
export default vue;