Start work on VolumesView.vue
This commit is contained in:
@@ -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')
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user