Browse Source

处理字体切换

chenmy 1 year ago
parent
commit
28d82cb557
1 changed files with 3 additions and 0 deletions
  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);
         this.hasAnalysisAuth = this.getAnalysisAuth();
       }
+      let bodyElement = document.body;
+      console.log(bodyElement.style, 'body')
+      bodyElement.style.fontFamily=localStorage.local ==='zh-tw' ? '微软雅黑':'Hm'
     },
     getAnalysisAuth() {
       const proInfo = this.$store.state.user?.schoolProfile?.svcStatus || null;