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.
48 lines
1.4 KiB
48 lines
1.4 KiB
import Vue from 'vue'
|
|
import App from './App'
|
|
import router from './router'
|
|
import store from './store/'
|
|
import VueLazyload from 'vue-lazyload'
|
|
import infiniteScroll from 'vue-infinite-scroll'
|
|
import VueCookie from 'vue-cookie'
|
|
import { userInfo } from './api'
|
|
import { Button, Pagination, Checkbox, Icon, Autocomplete, Loading, Message, Notification, Steps, Step, Table, TableColumn, Input, Dialog, Select, Option } from 'element-ui'
|
|
import { getStore } from '/utils/storage'
|
|
import VueContentPlaceholders from 'vue-content-placeholders'
|
|
Vue.use(VueContentPlaceholders)
|
|
Vue.use(Button)
|
|
Vue.use(Pagination)
|
|
Vue.use(Checkbox)
|
|
Vue.use(Icon)
|
|
Vue.use(Autocomplete)
|
|
Vue.use(Steps)
|
|
Vue.use(Step)
|
|
Vue.use(Table)
|
|
Vue.use(TableColumn)
|
|
Vue.use(Input)
|
|
Vue.use(Dialog)
|
|
Vue.use(Select)
|
|
Vue.use(Option)
|
|
Vue.use(Loading.directive)
|
|
Vue.prototype.$loading = Loading.service
|
|
Vue.prototype.$notify = Notification
|
|
Vue.prototype.$message = Message
|
|
Vue.use(infiniteScroll)
|
|
Vue.use(VueCookie)
|
|
Vue.use(VueLazyload, {
|
|
// preLoad: 1.3,
|
|
// error: 'dist/error.png',
|
|
loading: '/static/images/load.gif'
|
|
// attempt: 1
|
|
})
|
|
Vue.config.productionTip = false
|
|
const whiteList = ['/home', '/goods', '/login', '/register', '/goodsDetails', '/thanks', '/search', '/refreshsearch',
|
|
'/refreshgoods'] // 不需要登陆的页面
|
|
|
|
/* eslint-disable no-new */
|
|
new Vue({
|
|
el: '#app',
|
|
store,
|
|
router,
|
|
render: h => h(App)
|
|
})
|
|
|