瀏覽代碼

处理字体切换

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;