ソースを参照

fix style bug

Michael Wang 3 年 前
コミット
b5b055a47e

+ 9 - 2
src/features/UserLogin/GlobalNotice.vue

@@ -51,8 +51,15 @@ const show = $computed(() => !clicked && notice.enable);
   <teleport to="body">
     <div
       v-if="show"
-      style="position: absolute; top: 0; left: 0; width: 100vw; height: 100vh"
-      class="tw-flex tw-justify-center tw-items-center tw-bg-slate-300 tw-opacity-95"
+      style="
+        position: absolute;
+        top: 0;
+        left: 0;
+        width: 100vw;
+        height: 100vh;
+        background-color: white;
+      "
+      class="tw-flex tw-justify-center tw-items-center tw-opacity-95"
     >
       <div
         style="

+ 1 - 1
src/features/UserLogin/UserLogin.vue

@@ -400,7 +400,7 @@ onUnmounted(() => $message.destroyAll());
           style="
             background: linear-gradient(to bottom, #38f6f5 0%, #8efdf4 100%);
           "
-          @load="(e) => ((e.target as HTMLImageElement).style.backgroundColor = '')"
+          @load="(e) => ((e.target as HTMLImageElement).style.backgroundImage = 'none')"
         />
         <!-- 加上它,在logo加载失败的时候有用 -->
       </div>