This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nezha-nezha-fronted/nezha-fronted/src/main.js

34 lines
806 B
JavaScript
Raw Normal View History

import "./assets/css/main.css";
import 'element-ui/lib/theme-chalk/index.css';
import ElementUI from 'element-ui';
import i18n from './components/common/i18n'
2019-11-28 18:23:49 +08:00
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios';
import { post, get, patch, put, del } from './components/common/js/http.js'
import Pagination from "./components/common/pagination"; //引入全局分页组件
Vue.component("Pagination", Pagination);
Vue.prototype.$axios = axios
Vue.prototype.$post = post;
Vue.prototype.$get = get;
Vue.prototype.$patch = patch;
Vue.prototype.$put = put;
Vue.prototype.$delete = del;
2019-11-28 18:23:49 +08:00
Vue.config.productionTip = false
Vue.use(ElementUI)
2019-11-28 18:23:49 +08:00
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
i18n,
2019-11-28 18:23:49 +08:00
components: { App },
template: '<App/>'
})