260720
This commit is contained in:
19
public/404.html
Normal file
19
public/404.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>页面跳转中</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
(function () {
|
||||
var pathname = window.location.pathname.replace(/\/+$/, '');
|
||||
var search = window.location.search || '';
|
||||
var hash = window.location.hash || '';
|
||||
var targetPath = pathname && pathname !== '/404.html' ? pathname : '/';
|
||||
window.location.replace('/#' + targetPath + search + hash);
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user