|
|
@@ -10,9 +10,10 @@ import 'element-ui/lib/theme-chalk/index.css'; |
|
|
|
import store from './store'; |
|
|
|
import vuex from 'vuex'; |
|
|
|
import Cookies from 'js-cookie' |
|
|
|
import resolveAvator from '@/filters/resolveAvator'; |
|
|
|
import resolveImg ,{ resolveAvator } from '@/filters/resolveImg'; |
|
|
|
import VueLazyload from 'vue-lazyload' |
|
|
|
import VueContextMenu from '@xunlei/vue-context-menu' |
|
|
|
import LazyImg from '@/components/img-lazy'; |
|
|
|
|
|
|
|
// 加载其他css |
|
|
|
import "@/../public/static/css/element_chanage.css" |
|
|
@@ -29,12 +30,14 @@ Vue.use(ElementUI); |
|
|
|
Vue.use(VueLazyload); |
|
|
|
Vue.use(vuex); |
|
|
|
Vue.prototype.$cookie = Cookies; |
|
|
|
Vue.component('ImgLazy', LazyImg); |
|
|
|
|
|
|
|
// todo DEPRECATED |
|
|
|
Vue.prototype.$axios = axios; |
|
|
|
// todo DEPRECATED |
|
|
|
Vue.prototype.$fetch = axios; |
|
|
|
Vue.prototype.$fetchApi = fetchApi; |
|
|
|
Vue.filter('resolveImg', resolveImg); |
|
|
|
Vue.filter('resolveAvator', resolveAvator); |
|
|
|
|
|
|
|
//右键菜单 |
|
|
|