index.html 920 Bytes
Newer Older
黄贤军's avatar
黄贤军 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<!DOCTYPE html>
<html style="width: 100%;height: 100%;">

<head>
  <meta charset="utf-8">
  <title>Linux Web 管理</title>
  <link rel="shortcut icon" type="image/x-icon" href="/static/images/hscc_logo_ico.ico" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <script ></script>
</head>

<body style="width: 100%;height: 100%;background-color: #ffffff">
  <div id="app"></div>
</body>
<script type="text/javascript" language="javaScript">
  window.addEventListener('message', function(e) {
    if (self === top) return
    if (window.location.href.indexOf('login') === -1) return
    var token = e.data.token
    console.log(e.data)
    sessionStorage.setItem('mes_token', token)
    document.cookie = 'header=' + token
    document.Authorization = token
    sessionStorage.setItem('groupId', e.data.group_id)
  })
</script>

</html>