mirror of
https://github.com/aelve/guide.git
synced 2024-12-26 22:34:42 +03:00
36 lines
736 B
Vue
36 lines
736 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
|
|
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 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>
|