App.vue 516 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <div id="app" :style="theme">
  3. <router-view/>
  4. </div>
  5. </template>
  6. <script>
  7. import { uaRedirect } from '@/utils/uaredirect'
  8. import CssVar from '@/assets/styles/variables.scss'
  9. export default {
  10. name: 'App',
  11. data() {
  12. return {
  13. theme: {
  14. '--themeColor': CssVar['theme'],
  15. }
  16. }
  17. },
  18. mounted() {
  19. setTimeout(uaRedirect, 50)
  20. }
  21. }
  22. </script>
  23. <style>
  24. .el-popup-parent--hidden {
  25. overflow: initial !important;
  26. padding-right: 0 !important;
  27. }
  28. p {
  29. margin: 0;
  30. }
  31. </style>