任一存 hace 1 año
padre
commit
7d4856ac04
Se han modificado 4 ficheros con 5 adiciones y 4 borrados
  1. 2 1
      src/App.vue
  2. BIN
      src/assets/style/SOURCEHANSANSCN-LIGHT.OTF
  3. 2 2
      src/router/index.js
  4. 1 1
      src/views/HomeView.vue

+ 2 - 1
src/App.vue

@@ -244,7 +244,8 @@ html, body {
 // 字体
 @font-face {
   font-family: 'Source Han Sans CN';
-  src: url('@/assets/style/SourceHanSansCN-Regular.otf');
+  src: url('@/assets/style/SOURCEHANSANSCN-LIGHT.OTF');
+  // src: url('@/assets/style/SourceHanSansCN-Regular.otf');
 }
 // @font-face {
 //   font-family: 'Source Han Serif CN-Bold';

BIN
src/assets/style/SOURCEHANSANSCN-LIGHT.OTF


+ 2 - 2
src/router/index.js

@@ -101,8 +101,8 @@ const router = createRouter({
 
 router.beforeEach((to, from) => {
   // 生产环境下强制每次都从首页进入
-  if (process.env.NODE_ENV === 'production' && !from.name && to.name !== 'HomeView') {
-    return '/'
+  if (process.env.NODE_ENV !== 'development' && !from.name && to.name !== 'HomeView') {
+    return '/home'
   }
 })
 

+ 1 - 1
src/views/HomeView.vue

@@ -836,7 +836,7 @@ const iframeUrl = ref('')
         font-weight: 400;
         font-size: 14px;
         color: #589498;
-        line-height: 16px;
+        line-height: 20px;
         text-indent: 2em;
         height: 91px;
         overflow: auto;