1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-25 13:51:45 +03:00
guide/front/client/components/Toolbar.vue
2018-09-21 18:09:32 +05:00

31 lines
697 B
Vue

<template>
<v-toolbar dark>
<v-toolbar-side-icon></v-toolbar-side-icon>
<v-toolbar-title>Aelve Guide</v-toolbar-title>
<v-spacer></v-spacer>
<search-field />
<v-toolbar-items class="hidden-sm-and-down">
<v-btn v-on:click="getApi" flat>Login</v-btn>
</v-toolbar-items>
</v-toolbar>
</template>
<script lang="ts">
import Vue from 'vue';
import SearchField from 'client/components/Search.vue';
import Component from 'vue-class-component';
import axios from "axios";
@Component({
components: {
SearchField
}
})
export default class Toolbar extends Vue {
async getApi() {
const { data } = await axios.get('api');
console.log(data);
}
}
</script>