App.vue 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <div id="app">
  3. <router-view/>
  4. </div>
  5. </template>
  6. <script>
  7. import axios from 'axios'
  8. import { MessageBox } from 'element-ui'
  9. export default {
  10. name: 'App',
  11. data(){
  12. return{
  13. innerHeight:window.innerHeight,
  14. innerWidth:window.innerWidth,
  15. timer:null,
  16. }
  17. },
  18. metaInfo() {
  19. return {
  20. title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
  21. titleTemplate: title => {
  22. return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
  23. },
  24. }
  25. },
  26. mounted(){
  27. },
  28. methods:{
  29. },
  30. }
  31. </script>
  32. <style>
  33. #app{
  34. /*分辨率调整*/
  35. /*width: 3840px;*/
  36. /*height: 2160px;*/
  37. width: 3834px;
  38. height: 2154px;
  39. display: flex;
  40. flex:1;
  41. overflow: hidden;
  42. }
  43. .el-drawer__container,.el-dialog__wrapper,.el-message-box__wrapper{
  44. background: rgba(0,0,0,0.4);
  45. }
  46. .codeHtmlPage{
  47. transform: scale(1)!important;
  48. }
  49. @font-face {
  50. font-family: 'alimmFonts';
  51. src: url('./assets/fonts/alimm.ttf') format('truetype'); /* 根据实际路径调整 */
  52. font-weight: normal;
  53. font-style: normal;
  54. }
  55. @font-face {
  56. font-family: 'ysFonts';
  57. src: url('./assets/fonts/ys.ttf') format('truetype'); /* 根据实际路径调整 */
  58. font-weight: normal;
  59. font-style: normal;
  60. }
  61. @font-face {
  62. font-family: 'Alimama ShuHeiTi';
  63. src: url('./assets/fonts/AlimamaShuHeiTi-Bold.ttf') format('truetype'); /* 标题 */
  64. font-weight: normal;
  65. font-style: normal;
  66. /*
  67. font-family: AlimamaShuHeiTi;
  68. */
  69. }
  70. @font-face {
  71. font-family: 'YouSheBiaoTiHei';
  72. src: url('./assets/fonts/YouSheBiaoTiHei.ttf') format('truetype'); /* 数字 */
  73. font-weight: normal;
  74. font-style: normal;
  75. /*
  76. font-family: YouSheBiaoTiHei;
  77. */
  78. }
  79. @font-face {
  80. font-family: 'Source Han Sans CN';
  81. src: url('./assets/fonts/SOURCEHANSANSCN.OTF') format('truetype'); /* 正文 */
  82. font-weight: normal;
  83. font-style: normal;
  84. /*
  85. font-family: SOURCEHANSANSCN;
  86. */
  87. }
  88. </style>