Blame view

src/main.js 1.15 KB
a0ea7efe   梁保满   init
1
2
3
4
5
6
7
8
9
10
11
  // The Vue build version to load with the `import` command
  // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
  import Vue from "vue"
  import ElementUI from "element-ui"
  import App from "./App.vue"
  import router from "./router"
  import store from "./store"
  import i18n from "./i18n/i18n"
  import globalPlugin from "./utils/global"
  import permission from "./directive/permission/button"
  import NProgress from "nprogress"
d4283687   梁保满   首页布局完成,页面顶部返回组件
12
13
  import "babel-polyfill"
  import '@/components/globalComponents.js'
77ebf04d   梁保满   个人版
14
  import '@/plugins/echarts.js'
a0ea7efe   梁保满   init
15
16
  
  import "nprogress/nprogress.css"
a0ea7efe   梁保满   init
17
  import "font-awesome/css/font-awesome.css"
b769660c   梁保满   备课组题细节调整,随堂问列表页面开发完成
18
  import "element-ui/lib/theme-chalk/index.css"
a0ea7efe   梁保满   init
19
  import "@/router/permission"
d4283687   梁保满   首页布局完成,页面顶部返回组件
20
  import "@/assets/css/base.css"
13b58a42   梁保满   备题组卷部分前端页面基本完成
21
  import "@/assets/css/index.scss"
a0ea7efe   梁保满   init
22
23
24
25
26
27
28
29
30
  
  Vue.config.productionTip = false
  Vue.use(ElementUI)
  Vue.use(globalPlugin)
  Vue.use(permission)
  
  NProgress.inc(0.2)
  NProgress.configure({ easing: "ease", speed: 500, showSpinner: false })
  
1b9bae95   梁保满   级联选择器调整,日志接口调整
31
32
33
34
35
36
37
  
  Array.prototype.remove = function (val) {
    var index = this.indexOf(val);
    if (index > -1) {
      this.splice(index, 1);
    }
  };
a0ea7efe   梁保满   init
38
39
40
41
42
43
44
  /* eslint-disable no-new */
  new Vue({
    el: "#app",
    router,
    store,
    i18n,
    render: h => h(App),
a0ea7efe   梁保满   init
45
  })