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.
yanzong_vue_admin/src/main.js

37 lines
940 B

1 year ago
// with polyfills
import 'core-js/stable'
import 'regenerator-runtime/runtime'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/'
import { VueAxios } from './utils/request'
import bootstrap from './core/bootstrap'
import './core/lazy_use'
import './permission' // permission control
import './utils/filter' // global filter
import './global.less'
import { Dialog } from '@/components'
Vue.config.productionTip = false
Vue.prototype.pagination = {
total: 0, // 数据总数
current: 1, // 当前页码
pageSize: 15, // 每页显示条数
showQuickJumper: true, // 显示跳转输入框
showSizeChanger: true,
11 months ago
pageSizeOptions: ['15', '30', '50','100'],
showTotal: total => `${total} 条记录`,
12 months ago
}
11 months ago
// mount axios Vue.$http and this.$http
1 year ago
Vue.use(VueAxios)
Vue.use(Dialog)
new Vue({
router,
store,
created: bootstrap,
render: h => h(App)
}).$mount('#app')