Ver código fonte

remove logo bg color onload

Michael Wang 3 anos atrás
pai
commit
49c23f38dd
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      .eslintrc.js
  2. 1 1
      src/features/UserLogin/UserLogin.vue

+ 1 - 1
.eslintrc.js

@@ -67,7 +67,7 @@ module.exports = {
           // Script parser for vue directives (e.g. `v-if=` or `:attribute=`)
           // and vue interpolations (e.g. `{{variable}}`).
           // If not specified, the parser determined by `<script lang ="...">` is used.
-          "<template>": "espree",
+          "<template>": "@typescript-eslint/parser",
         },
         project: ["tsconfig.json"],
       },

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

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