App.vue 731 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <div id="app">
  3. <router-view />
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'App',
  9. metaInfo() {
  10. return {
  11. title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
  12. titleTemplate: title => {
  13. return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
  14. }
  15. }
  16. }
  17. }
  18. </script>
  19. <style lang="scss">
  20. /**挂载iconfont字体图标*/
  21. @font-face {
  22. font-family: 'iconfont';
  23. src: url('https://at.alicdn.com/t/c/font_4620946_iqtdfey33er.ttf?t=1722870966842') format('truetype');
  24. /* src: url('~@/static/font/iconfont.ttf') format('truetype'); */
  25. }
  26. .icon {
  27. font-family: iconfont;
  28. }
  29. </style>