|
@@ -18,39 +18,25 @@ require('video.js/dist/video-js.css');
|
|
require('vue-video-player/src/custom-theme.css');
|
|
require('vue-video-player/src/custom-theme.css');
|
|
Vue.use(VideoPlayer);
|
|
Vue.use(VideoPlayer);
|
|
|
|
|
|
-//新添加的
|
|
|
|
import vuescroll from 'vue-scroll'
|
|
import vuescroll from 'vue-scroll'
|
|
import echarts from 'echarts'
|
|
import echarts from 'echarts'
|
|
-//import FullCalendar from 'vue-full-calendar'
|
|
|
|
-//Vue.use(FullCalendar);
|
|
|
|
-//全局API请求
|
|
|
|
|
|
+
|
|
Vue.prototype.$api = apiTools;
|
|
Vue.prototype.$api = apiTools;
|
|
Vue.prototype.$post = post;
|
|
Vue.prototype.$post = post;
|
|
Vue.prototype.$get = fetch;
|
|
Vue.prototype.$get = fetch;
|
|
-
|
|
|
|
Vue.prototype.$eventBus = new Vue()
|
|
Vue.prototype.$eventBus = new Vue()
|
|
-
|
|
|
|
Vue.prototype.$jwtDecode = jwtDecode;
|
|
Vue.prototype.$jwtDecode = jwtDecode;
|
|
-
|
|
|
|
Vue.use(vuescroll)
|
|
Vue.use(vuescroll)
|
|
Vue.prototype.$echarts = echarts
|
|
Vue.prototype.$echarts = echarts
|
|
-
|
|
|
|
-//ZXJ
|
|
|
|
Vue.prototype.common = commons;
|
|
Vue.prototype.common = commons;
|
|
|
|
|
|
// Registration of global components
|
|
// Registration of global components
|
|
Vue.component('icon', FontAwesomeIcon);
|
|
Vue.component('icon', FontAwesomeIcon);
|
|
|
|
|
|
-//使用钩子函数对路由进行权限跳转
|
|
|
|
-//router.beforeEach((to, from, next) => {
|
|
|
|
-//const role = localStorage.getItem('token');
|
|
|
|
-// if (!role && to.path !== '/') {
|
|
|
|
-// next('/');
|
|
|
|
-// } else {
|
|
|
|
-// next();
|
|
|
|
-// }
|
|
|
|
-//})
|
|
|
|
-//Vue.prototype.$http = axios
|
|
|
|
|
|
+router.beforeEach((to, from, next) => {
|
|
|
|
+ window.scroll(0, 0);
|
|
|
|
+ next();
|
|
|
|
+});
|
|
|
|
|
|
Vue.use(iView, {
|
|
Vue.use(iView, {
|
|
i18n: (key, value) => i18n.t(key, value)
|
|
i18n: (key, value) => i18n.t(key, value)
|