<!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>
  <script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=HJEBZ-U5BLP-SRWDB-LBKOS-PCIQH-F4FLG"></script>
  <script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
</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>