1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- import Vue from 'vue';
- import ElementUI from 'element-ui';
- import 'element-ui/lib/theme-chalk/index.css';
- import App from './App';
- import router from './router';
- import store from './vuex/store';
- import touch from 'vue-directive-touch';
- import axios from 'axios';
- Vue.prototype.$axios = axios;
- Vue.config.productionTip = false;
- Vue.use(ElementUI);
- Vue.use(touch);
- Vue.prototype.openLoading = function() {
- const loading = this.$loading({
- lock: true,
- text: '正在加载...',
- spinner: 'el-icon-loading',
- background: 'rgba(0, 0, 0, 0.7)',
-
- body: true,
-
- })
- setTimeout(function () {
- loading.close();
- },500)
- return loading;
- }
- new Vue({
- el: '#app',
- router,
- store,
- components: { App },
- template: '<App/>',
- })
|