2
0
mirror of https://github.com/frappe/books.git synced 2024-12-24 20:00:29 +00:00
books/src/App.vue

42 lines
694 B
Vue
Raw Normal View History

2018-06-01 12:35:51 +00:00
<template>
<div id="app">
<frappe-desk v-if="showDesk">
<router-view />
2018-06-01 12:35:51 +00:00
</frappe-desk>
<router-view v-else name="setup" />
2018-06-01 12:35:51 +00:00
</div>
</template>
<script>
import Desk from '@/components/Desk';
export default {
name: 'App',
data() {
return {
showDesk: true
}
},
2018-06-01 12:35:51 +00:00
components: {
FrappeDesk: Desk
},
async beforeRouteUpdate(to, from, next) {
const accountingSettings = await frappe.getSingle('AccountingSettings');
if (accountingSettings.companyName) {
this.showDesk = true;
} else {
this.showDesk = true;
}
2018-06-01 12:35:51 +00:00
}
}
</script>
<style lang="scss">
@import "~bootstrap/scss/bootstrap";
html {
font-size: 14px;
}
</style>