/**
* Created by lixueying on 2017/1/16.
*/
import Vue from 'vue'
export default new Vue()
import {
KeyCode,
bus
} from './utils'
Vue.prototype.$http = axios
Vue.prototype.$bus = bus
Vue.prototype.$api = api
search() {
this.$refs.table.load();
this.$bus.$emit('listDetail', this.page)
},
mounted() {
this.$on('init', this.init);
this.$bus.$on('listDetail', this.listDetail)
}
listDetail(page) {
this.page.query = page.query
this.search()
}
评论前必须登录!
注册