-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
39 lines (33 loc) · 1002 Bytes
/
main.js
File metadata and controls
39 lines (33 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// 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 App from './App'
import router from './router'
// 配置axios
import Axios from 'axios'
Vue.prototype.$axios = Axios
//配置图片懒加载
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload, {
loading: "../static/loading/loading-bars.svg"
})
//引入CSS样式
import './assets/css/base.css'
import './assets/css/checkout.css'
import './assets/css/login.css'
import './assets/css/product.css'
//引入自定义组件
import NavHeader from '@/components/NavHeader'
Vue.component(NavHeader.name,NavHeader)
import NavFooter from '@/components/NavFooter'
Vue.component(NavFooter.name,NavFooter)
import NavBread from '@/components/NavBread'
Vue.component(NavBread.name,NavBread)
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
components: { App },
template: '<App/>'
})