You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.0 KiB

4 years ago
import Vue from 'vue';
4 years ago
import App from '@/App.vue';
import router from '@/router';
4 years ago
import ElementUI from 'element-ui';
4 years ago
import '@/styles/index.scss'
4 years ago
import VueI18n from 'vue-i18n';
4 years ago
import mixinApp from '@/mixins/app';
import { messages } from '@/i18n';
4 years ago
import 'babel-polyfill';
4 years ago
import '@/libs/resize';
import {post,get,del,put} from '@/plugins/requests/index.js';
import api from '@/api';
import store from '@/store'
import Setting from '@/setting';
4 years ago
import permission from '@/router/permission';
// 插件
4 years ago
import plugins from '@/plugins';
import filters from '@/plugins/filters'
4 years ago
Vue.use(plugins);
4 years ago
Object.keys(filters).forEach(item => Vue.filter(item,filters[item]))
4 years ago
Vue.prototype.api = api;
Vue.prototype.$get = get;
Vue.prototype.$post = post;
Vue.prototype.$del = del;
Vue.prototype.$put = put;
Vue.config.productionTip = false;
Vue.use(VueI18n);
Vue.use(ElementUI);
const i18n = new VueI18n({
4 years ago
locale: Setting.i18n.default,
4 years ago
messages
});
new Vue({
4 years ago
mixins: [mixinApp],
4 years ago
router,
i18n,
4 years ago
store,
4 years ago
render: h => h(App)
}).$mount('#app');