123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <template>
- <div id="app">
- <router-view></router-view>
- <TabBar v-if="showTabBar"></TabBar>
- </div>
- </template>
- <script>
- import TabBar from '@/components/TabBar.vue'
- export default {
- name: 'App',
- components: {
- TabBar
- },
- computed: {
- showTabBar() {
- // Hide TabBar on login, register and profile detail pages
- const hideTabBarRoutes = ['/login', '/register', '/profile/detail']
- return !hideTabBarRoutes.includes(this.$route.path)
- }
- }
- }
- </script>
- <style>
- html {
- font-size: 16px;
- height: 100%;
- }
- body {
- margin: 0;
- padding: 0;
- font-size: 16px;
- -webkit-text-size-adjust: 100%;
- height: 100%;
- }
- #app {
- font-family: Arial, sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- color: #2c3e50;
- height: 100%;
- /* padding-bottom: 50px; */
- }
- </style>
|