チャート取得APIを誰でも利用できるようにするなど

This commit is contained in:
syuilo
2018-08-24 07:23:04 +09:00
parent c1b47a2119
commit b21287262e
3 changed files with 8 additions and 14 deletions

View File

@@ -11,7 +11,7 @@
<main>
<div v-show="page == 'dashboard'">
<x-dashboard/>
<x-chart :chart="chart"/>
<x-chart/>
</div>
<div v-if="page == 'users'">
<x-suspend-user/>
@@ -49,11 +49,6 @@ export default Vue.extend({
chart: null
};
},
created() {
(this as any).api('admin/chart').then(chart => {
this.chart = chart;
});
},
methods: {
nav(page: string) {
this.page = page;