Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
vasttian committed Aug 24, 2019
1 parent 51713f0 commit 304a6fe
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 19 deletions.
4 changes: 1 addition & 3 deletions src/views/dashboard/TheIndex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
:key="index"
>
<v-card>
<separate-indicator :config="config"></separate-indicator>
<separate-indicator :config="config" />
</v-card>
</v-flex>
</v-layout>
Expand Down Expand Up @@ -83,7 +83,5 @@ export default {
],
};
},
methods: {},
created() {},
};
</script>
13 changes: 6 additions & 7 deletions src/views/dashboard/components/charts/DynamicAnalysis.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ export default {
interval: 2000,
};
},
computed: {},
created() {
this.chartOption = this.buildChartOption(this.initialData());
},
beforeDestroy() {
clearInterval(this.timer);
},
methods: {
randomNum() {
return parseFloat(Math.random() * 10 + 7).toFixed(0);
Expand Down Expand Up @@ -186,11 +191,5 @@ export default {
return cnt;
},
},
created() {
this.chartOption = this.buildChartOption(this.initialData());
},
beforeDestroy() {
clearInterval(this.timer);
},
};
</script>
7 changes: 3 additions & 4 deletions src/views/dashboard/components/charts/TotalStatistics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export default {
chartOption: {},
};
},
computed: {},
created() {
this.chartOption = this.buildChartOption();
},
methods: {
buildChartOption() {
const xAxisData = [
Expand Down Expand Up @@ -228,8 +230,5 @@ export default {
};
},
},
created() {
this.chartOption = this.buildChartOption();
},
};
</script>
7 changes: 3 additions & 4 deletions src/views/dashboard/components/charts/VisitorsLocation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export default {
],
};
},
computed: {},
created() {
this.chartOption = this.buildChartOption(this.data, this.top);
},
methods: {
buildChartOption(data, top) {
/* eslint-disable no-param-reassign */
Expand Down Expand Up @@ -241,8 +243,5 @@ export default {
};
},
},
created() {
this.chartOption = this.buildChartOption(this.data, this.top);
},
};
</script>
2 changes: 1 addition & 1 deletion src/views/widgets/svg-icon/VIcons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default {
},
methods: {
generateCode(item) {
return `<svg-icon icon-class="${item}"/>`;
return `<svg-icon icon-class="${item}" />`;
},
handleClipboard(target, text) {
handleClipboard(target, text);
Expand Down

0 comments on commit 304a6fe

Please sign in to comment.