Skip to content

Commit

Permalink
update(page): update page, router logic
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 committed Dec 8, 2023
1 parent 96a725b commit b16b16c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
23 changes: 16 additions & 7 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
<html>
<!DOCTYPE html>
<html lang="en">

<head>
<script>
sessionStorage.redirect = location.pathname.substring(1);
</script>
<meta http-equiv="refresh" content="0;URL='/'">
<title>Redirecting</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta content='Fastjs is a useful, lightweight JavaScript library for any types of project.' name='description'
property="og:determiner">
<meta content='Fastjs,fastjs,frame' name='keywords'>
<meta content="Fastjs - Fly again with us" property="og:title" />
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9, user-scalable=no">
<title>Fastjs - Fly again with us</title>
</head>

<body>
If you are not redirected automatically, please <a href="/">click here</a>.
<div id="app"></div>
<script type="module" src="./src/main.js"></script>
</body>

</html>
7 changes: 0 additions & 7 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ export default {
components: {
Topbar,
},
created() {
if (sessionStorage.redirect) {
const redirect = sessionStorage.redirect
delete sessionStorage.redirect
this.$router.push(redirect)
}
},
mounted() {
// add star
function newStar() {
Expand Down

0 comments on commit b16b16c

Please sign in to comment.