|
|
@@ -30,7 +30,17 @@
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="app-frame-shell">
|
|
|
- <iframe src="./app.html" title="博物中国"></iframe>
|
|
|
+ <iframe id="app-frame" title="博物中国"></iframe>
|
|
|
</div>
|
|
|
+ <script>
|
|
|
+ (function () {
|
|
|
+ var iframe = document.getElementById("app-frame");
|
|
|
+ var hash = window.location.hash;
|
|
|
+ if (!hash || hash === "#") {
|
|
|
+ hash = "#/";
|
|
|
+ }
|
|
|
+ iframe.src = "./app.html" + hash;
|
|
|
+ })();
|
|
|
+ </script>
|
|
|
</body>
|
|
|
</html>
|