Total Complexity | 5 |
Complexity/F | 1.25 |
Lines of Code | 26 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import Vue from 'vue'; |
||
2 | import VueEvents from 'vue-events'; |
||
3 | import ContentSeoTable from '../vue/ContentSeoTable.vue'; |
||
4 | |||
5 | Vue.use(VueEvents); |
||
6 | // Create our vue instance |
||
7 | const vm = new Vue({ |
||
|
|||
8 | el: "#cp-nav-content", |
||
9 | components: { |
||
10 | 'content-seo-table': ContentSeoTable, |
||
11 | }, |
||
12 | data: {}, |
||
13 | methods: { |
||
14 | onTableRefresh(vuetable) { |
||
15 | Vue.nextTick(() => vuetable.refresh()); |
||
16 | } |
||
17 | }, |
||
18 | mounted() { |
||
19 | this.$events.$on('refresh-table', eventData => this.onTableRefresh(eventData)); |
||
20 | }, |
||
21 | }); |
||
22 | |||
23 | // Accept HMR as per: https://webpack.js.org/api/hot-module-replacement#accept |
||
24 | if (module.hot) { |
||
25 | module.hot.accept(); |
||
26 | } |
||
27 |