25 lines
466 B
Vue
25 lines
466 B
Vue
<script>
|
|
import TreePage from './tree.vue';
|
|
import { updateElementsVisibility } from '../utils/dom';
|
|
|
|
export default {
|
|
components: {
|
|
TreePage,
|
|
},
|
|
mounted() {
|
|
this.updateProjectElements(true);
|
|
},
|
|
beforeDestroy() {
|
|
this.updateProjectElements(false);
|
|
},
|
|
methods: {
|
|
updateProjectElements(isShow) {
|
|
updateElementsVisibility('.js-show-on-project-root', isShow);
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<tree-page path="/" />
|
|
</template>
|