media_player_client/src/App.vue

23 lines
500 B
Vue
Raw Normal View History

2021-08-05 14:23:45 +08:00
<template>
<q-ajax-bar position="top" color="accent" size="5px" skip-hijack />
<router-view />
</template>
<script lang="ts">
2021-08-05 17:26:27 +08:00
import { defineComponent } from "vue";
import { useI18n } from "vue-i18n";
import EventBus from "src/common/EventBus";
2021-08-05 14:23:45 +08:00
export default defineComponent({
2021-08-05 17:26:27 +08:00
name: "App",
2021-08-05 14:23:45 +08:00
setup() {
const $t = useI18n();
2021-08-05 17:26:27 +08:00
document.title = $t.t("title");
window.onresize = (evt: any) =>
EventBus.getInstance().emit("windowResize", evt);
2021-08-05 14:23:45 +08:00
return {};
},
});
</script>