Vben
2021-06-18 4c89ea7474f4315870df1790f99f3e431f343b90
index.html
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" id="htmlRoot">
  <head>
    <%= viteHtmlPluginOptions.hmScript %>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit" />
@@ -10,13 +9,30 @@
      content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
    />
    <title></title>
    <title><%= title %></title>
    <link rel="icon" href="/favicon.ico" />
    <%= viteHtmlPluginOptions.injectConfig %>
  </head>
  <body>
    <script>
      (() => {
        var htmlRoot = document.getElementById('htmlRoot');
        var theme = window.localStorage.getItem('__APP__DARK__MODE__');
        if (htmlRoot && theme) {
          htmlRoot.setAttribute('data-theme', theme);
          theme = htmlRoot = null;
        }
      })();
    </script>
    <div id="app">
      <style>
        html[data-theme='dark'] .app-loading {
          background-color: #2c344a;
        }
        html[data-theme='dark'] .app-loading .app-loading-title {
          color: rgba(255, 255, 255, 0.85);
        }
        .app-loading {
          display: flex;
          width: 100%;
@@ -24,7 +40,7 @@
          justify-content: center;
          align-items: center;
          flex-direction: column;
          background: #f0f2f5;
          background-color: #f4f7f9;
        }
        .app-loading .app-loading-wrap {
@@ -137,11 +153,11 @@
      </style>
      <div class="app-loading">
        <div class="app-loading-wrap">
          <img src="./resource/img/logo.png" class="app-loading-logo" alt="Logo" />
          <img src="/resource/img/logo.png" class="app-loading-logo" alt="Logo" />
          <div class="app-loading-dots">
            <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
          </div>
          <div class="app-loading-title"><%= viteHtmlPluginOptions.title %></div>
          <div class="app-loading-title"><%= title %></div>
        </div>
      </div>
    </div>