|
|
@@ -1,25 +0,0 @@
|
|
|
-<!DOCTYPE html>
|
|
|
-<html lang="en">
|
|
|
-<head>
|
|
|
- <meta charset="UTF-8">
|
|
|
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
- <title>Document</title>
|
|
|
-</head>
|
|
|
-<body>
|
|
|
- <div id="app">hello</div>
|
|
|
- <script>
|
|
|
- // iframe接收消息
|
|
|
- window.addEventListener('message', function(e) {
|
|
|
- if (e.data == 'removeToken') {
|
|
|
- if (e.source != window.parent) {
|
|
|
- return;
|
|
|
- }
|
|
|
- var storeKey = 'app-state-session';
|
|
|
- localStorage.removeItem(storeKey);
|
|
|
- window.parent.postMessage("success", "*");
|
|
|
- }
|
|
|
- });
|
|
|
- </script>
|
|
|
-</body>
|
|
|
-</html>
|