Start work on VolumesView.vue

This commit is contained in:
Johannes Zellner
2024-12-26 12:19:48 +01:00
parent 58e5f96eda
commit e51014a5bc
7 changed files with 191 additions and 12 deletions
+9 -5
View File
@@ -1,21 +1,25 @@
<template>
<div>
<SupportView v-if="view === VIEWS.SUPPORT"></SupportView>
<SupportView v-if="view === VIEWS.SUPPORT" />
<VolumesView v-if="view === VIEWS.VOLUMES" />
</div>
</template>
<script>
import SupportView from './SupportView.vue';
import VolumesView from './VolumesView.vue';
const VIEWS = {
SUPPORT: 'support'
SUPPORT: 'support',
VOLUMES: 'volumes',
};
export default {
name: 'Index',
components: {
SupportView
SupportView,
VolumesView,
},
data() {
return {
@@ -38,6 +42,8 @@ export default {
if (view === VIEWS.SUPPORT) {
that.view = VIEWS.SUPPORT;
} else if (view === VIEWS.VOLUMES) {
that.view = VIEWS.VOLUMES;
} else {
that.view = '';
}
@@ -45,8 +51,6 @@ export default {
window.addEventListener('hashchange', onHashChange);
onHashChange();
console.log('Indexvue mounted')
}
};