<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="referrer" content="no-referrer" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title>镇江管理后台</title>
</head>
<style>
  body {
    margin: 0;
  }
</style>

<body>
  <noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
      Please enable it to continue.</strong>
  </noscript>
  <div id="app"></div>
</body>
<script>
  // 关闭浏览器 清空登录信息

  var _beforeUnload_time = 0,
    _gap_time = 0;

  window.onunload = function () {
    _gap_time = new Date().getTime() - _beforeUnload_time;

    //浏览器关闭
    if (_gap_time <= 5) {
      window.localStorage.clear();
    }
  };

  window.onbeforeunload = function () {
    _beforeUnload_time = new Date().getTime();
  };
</script>

</html>