lex-xin 5 miesięcy temu
rodzic
commit
bcb82007b0

+ 17 - 17
src/App.tsx

@@ -42,10 +42,10 @@ export default defineComponent({
       const appTheme = setting.appTheme;
       const lightenStr = lighten(setting.appTheme, 6);
 
-    //   errorColor: string;
-    // errorColorHover: string;
-    // errorColorPressed: string;
-    // errorColorSuppl: string;
+      //   errorColor: string;
+      // errorColorHover: string;
+      // errorColorPressed: string;
+      // errorColorSuppl: string;
       return {
         common: {
           primaryColor: appTheme,
@@ -212,19 +212,19 @@ export default defineComponent({
       });
       // console.log('app - onounted - test interval');
 
-      if ('serviceWorker' in navigator) {
-        navigator.serviceWorker.getRegistrations().then(registrations => {
-          for (const registration of registrations) {
-            if (registration.scope.startsWith(`https://${location.host}/`)) {
-              registration.unregister().then(() => {
-                console.log(
-                  `Service Worker unregistered for https://${location.host}/`
-                );
-              });
-            }
-          }
-        });
-      }
+      // if ('serviceWorker' in navigator) {
+      //   navigator.serviceWorker.getRegistrations().then(registrations => {
+      //     for (const registration of registrations) {
+      //       if (registration.scope.startsWith(`https://${location.host}/`)) {
+      //         registration.unregister().then(() => {
+      //           console.log(
+      //             `Service Worker unregistered for https://${location.host}/`
+      //           );
+      //         });
+      //       }
+      //     }
+      //   });
+      // }
     });
     onUnmounted(() => {
       window.removeEventListener('message', handleOpen);

+ 5 - 5
src/views/prepare-lessons/components/lesson-main/courseware-presets/select-related/index.module.less

@@ -63,7 +63,7 @@
         background: rgba(0, 0, 0, 0.5);
         border-radius: 4px;
         font-weight: 600;
-        font-size: max(12px, 11px);
+        font-size: max(12px, 11Px);
         color: #ffffff;
         padding: 2px 6px;
       }
@@ -140,7 +140,7 @@
 
     .itemTitle {
       font-weight: 600;
-      font-size: 12px;
+      font-size: max(12px, 11Px);
       color: #000000;
       line-height: 17px;
 
@@ -162,7 +162,7 @@
     }
 
     .updateTime {
-      font-size: 12px;
+      font-size: max(12px, 10Px);
       color: #777777;
       padding-top: 2px;
     }
@@ -171,7 +171,7 @@
       display: flex;
       justify-content: space-between;
       span {
-        font-size: 12px;
+        font-size: max(12px, 10Px);
         color: #777777;
       }
     }
@@ -182,7 +182,7 @@
       background: #e8f4ff;
       border-radius: 2px;
       font-weight: 500;
-      font-size: max(10px, 10px);
+      font-size: max(10px, 10Px);
       color: #0378ec;
       cursor: pointer;
     }

+ 10 - 10
src/views/prepare-lessons/model/courseware-type/index.module.less

@@ -50,7 +50,7 @@
 
     z-index: 1;
     --n-border: none !important;
-    font-size: max(16px, 12px) !important;
+    font-size: max(16px, 12Px) !important;
   }
 
   :global {
@@ -163,7 +163,7 @@
         background: rgba(0, 0, 0, 0.5);
         border-radius: 4px;
         font-weight: 600;
-        font-size: max(12px, 11px);
+        font-size: max(12px, 11Px);
         color: #ffffff;
         padding: 2px 6px;
         & + .status {
@@ -215,7 +215,7 @@
 
     .previewBtn {
       background: #3d9eff;
-      height: max(40px, 32px);
+      height: max(40px, 32Px);
       padding: 0 30px;
       border-radius: 12px;
       color: #fff;
@@ -227,7 +227,7 @@
     align-items: center;
     justify-content: space-between;
     color: #777777;
-    font-size: max(13px, 11px);
+    font-size: max(13px, 11Px);
     padding-top: 8px;
     .authorName {
       max-width: 50%;
@@ -270,7 +270,7 @@
 
     .name {
       font-weight: 600;
-      font-size: max(14px, 13px);
+      font-size: max(14px, 13Px);
       color: #000000;
       display: flex;
       align-items: center;
@@ -286,8 +286,8 @@
 
       .iconEditName {
         display: none;
-        width: max(13px, 12px);
-        height: max(13px, 12px);
+        width: max(13px, 12Px);
+        height: max(13px, 12Px);
         background: url('../../images/icon-edit-name.png') no-repeat center
           center;
         background-size: contain;
@@ -338,7 +338,7 @@
     background: #e8f4ff;
     border-radius: 2px;
     font-weight: 500;
-    font-size: max(10px, 10px);
+    font-size: max(10px, 10Px);
     color: #0378ec;
     cursor: pointer;
   }
@@ -378,7 +378,7 @@
     border-radius: 7px;
     text-align: center;
     margin-right: 10px;
-    font-size: max(14px, 13px);
+    font-size: max(14px, 13Px);
     // color: #fff;
     color: #484f59;
     font-weight: 600;
@@ -512,7 +512,7 @@
     display: flex;
     align-items: center;
     font-weight: 600;
-    font-size: max(13px, 12px);
+    font-size: max(13px, 12Px);
     color: #484f59;
     line-height: 18px;
     border-radius: 8px;