1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-26 22:34:42 +03:00
guide/front/client/components/Toolbar.vue
2018-10-28 17:47:23 +03:00

39 lines
779 B
Vue

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