최초 커밋
This commit is contained in:
28
src/App.vue
Normal file
28
src/App.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div>
|
||||
<notifications></notifications>
|
||||
<router-view :key="$route.fullPath"></router-view>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
methods: {
|
||||
disableRTL() {
|
||||
if (!this.$rtl.isRTL) {
|
||||
this.$rtl.disableRTL();
|
||||
}
|
||||
},
|
||||
toggleNavOpen() {
|
||||
let root = document.getElementsByTagName('html')[0];
|
||||
root.classList.toggle('nav-open');
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$watch('$route', this.disableRTL, { immediate: true });
|
||||
this.$watch('$sidebar.showSidebar', this.toggleNavOpen)
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss"></style>
|
Reference in New Issue
Block a user