App.vue 428 B

123456789101112131415161718192021
  1. <template>
  2. <div id="app">
  3. <router-view></router-view>
  4. </div>
  5. </template>
  6. <script>
  7. import { api } from '~/ui-domain'
  8. export default{
  9. name: 'App',
  10. async mounted() {
  11. const { data } = await this.$http.get(`${process.env.API_BASE || api.base}/site-show`)
  12. document.title = data.site_name
  13. }
  14. }
  15. </script>
  16. <style type="text/css">
  17. body .el-table th.gutter{
  18. display: table-cell!important;
  19. }
  20. </style>