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