整理網頁路徑

This commit is contained in:
Raymond Yang 2023-07-10 15:46:39 +08:00
parent 105391ae13
commit cdb7022bf8
6 changed files with 58 additions and 25 deletions

View File

@ -5,32 +5,31 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>超異域公主連結 Re: Dive 台版 Rank 推薦表查詢系統</title>
<style>
html { color-scheme: light dark; }
body { width: 100%; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
<style>
html {
color-scheme: light dark;
}
<script language="javascript" type="text/javascript">
const jwt = localStorage.getItem("jwtToken");
if (!jwt) {
window.location.href = "./login.html";
}
</script>
body {
width: 100%;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>公主連結台版 Rank 推薦表</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
<p>
<div class="page-title">公主連結台版 Rank 推薦表</div>
</p>
<hr>
<div>請選擇推薦表作者:</div>
<div id="author"></div>
<hr>
<div class="center">
<h4><a href="./manage/index.html">登入後台介面</a></h4>
</div>
<hr>
</body>
</html>

View File

@ -59,7 +59,7 @@
const item = data[i];
row_2_data_1.innerHTML = "<img src=\"./" + item.imgSrc + "\" width=\"64\" height=\"64\">";
row_2_data_1.innerHTML = "<img src=" + item.imgSrc + "\"\" width=\"64\" height=\"64\">";
row_2_data_2.innerHTML = item.name;
row_2_data_3.innerHTML = item.standIndex;

34
manage/index.html Normal file
View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="zh-TW" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>超異域公主連結 Re: Dive 台版 Rank 推薦表查詢系統</title>
<style>
html { color-scheme: light dark; }
body { width: 100%; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
<script language="javascript" type="text/javascript">
const jwt = localStorage.getItem("jwtToken");
if (!jwt) {
window.location.href = "./login.html";
}
</script>
</head>
<body>
<p>
<div class="page-title">後台管理</div>
</p>
<hr>
<p>
<h4><a href="./character/index.html">管理角色</a></h4>
</p>
<p>
<h4><a href="./rankTable/index.html">管理推薦表</a></h4>
</p>
</body>
</html>

View File

@ -53,7 +53,7 @@
localStorage.setItem("jwtToken", token);
// 登录成功后,进行其他操作(例如重定向到受保护的页面)
window.location.href = "./index.html";
window.location.href = "../index.html";
})
.catch(function (error) {
const message = error.response.data.message;

View File

@ -40,7 +40,7 @@
localStorage.setItem('jwtToken', token);
// 登录成功后,进行其他操作(例如重定向到受保护的页面)
window.location.href = './index.html';
window.location.href = '../index.html';
})
.catch(function(error) {
const message = error.response.data.message;