zhaobao vor 1 Jahr
Ursprung
Commit
22d0dd85f2
3 geänderte Dateien mit 8 neuen und 5 gelöschten Zeilen
  1. 7 0
      src/App.vue
  2. 0 4
      src/styles/common.scss
  3. 1 1
      src/views/bigScreen/home/index.vue

+ 7 - 0
src/App.vue

@@ -13,3 +13,10 @@ export default {
   }
 }
 </script>
+<style>
+  @font-face{
+    font-family: 'YouSheBiaoTiHei';
+    src: url('~@/assets/font/YouSheBiaoTiHei.ttf');
+    /* src: url('./assets/font/YouSheBiaoTiHei.ttf') ; */
+}
+</style>

+ 0 - 4
src/styles/common.scss

@@ -1,8 +1,4 @@
 @charset "utf-8";
-*{
-  font-family: "Microsoft YaHei" !important;
-}
-
 // 滚动条
 /*滚动条宽度*/
 ::-webkit-scrollbar {

+ 1 - 1
src/views/bigScreen/home/index.vue

@@ -93,7 +93,7 @@ export default {
             .title{
                 height: 32px;
                 background-image: url(./images/home/title.png);
-                font-family: "YouSheBiaoTiHei";
+                font-family: "YouSheBiaoTiHei" !important;
                 background-size: 100% 100%;
                 background-repeat: no-repeat;
                 color: #2affff;