소스 검색

处理字体切换

chenmy 1 년 전
부모
커밋
28d82cb557
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      TEAMModelOS/ClientApp/src/common/BaseLayout.vue

+ 3 - 0
TEAMModelOS/ClientApp/src/common/BaseLayout.vue

@@ -449,6 +449,9 @@ export default {
         localStorage.setItem("edition", this.edition);
         localStorage.setItem("edition", this.edition);
         this.hasAnalysisAuth = this.getAnalysisAuth();
         this.hasAnalysisAuth = this.getAnalysisAuth();
       }
       }
+      let bodyElement = document.body;
+      console.log(bodyElement.style, 'body')
+      bodyElement.style.fontFamily=localStorage.local ==='zh-tw' ? '微软雅黑':'Hm'
     },
     },
     getAnalysisAuth() {
     getAnalysisAuth() {
       const proInfo = this.$store.state.user?.schoolProfile?.svcStatus || null;
       const proInfo = this.$store.state.user?.schoolProfile?.svcStatus || null;