Browse Source

将invite.html设置为主页面,更新所有返回主页面的链接

master
Default User 1 month ago
parent
commit
ca25a80a4a
  1. 1
      invite.html
  2. 2
      qr-collection.html
  3. 2
      server.js

1
invite.html

@ -188,7 +188,6 @@
<div class="action-buttons">
<button class="btn btn-primary" onclick="generateInviteQR()">重新生成二维码</button>
<button class="btn btn-primary" onclick="window.location.href='qr-collection.html'">查看二维码合集</button>
<button class="btn btn-secondary" onclick="window.location.href='certificate.html'">返回主页面</button>
</div>
<div class="footer">

2
qr-collection.html

@ -257,7 +257,7 @@
<div class="action-buttons">
<button class="btn btn-primary" onclick="window.location.href='invite.html'">生成邀请二维码</button>
<button class="btn btn-secondary" onclick="window.location.href='certificate.html'">返回主页面</button>
<button class="btn btn-secondary" onclick="window.location.href='invite.html'">返回主页面</button>
</div>
<div class="footer">

2
server.js

@ -496,7 +496,7 @@ const server = http.createServer(async (req, res) => {
// 解析请求路径,移除查询参数
let filePath = '.' + req.url.split('?')[0];
if (filePath === './') {
filePath = './certificate.html';
filePath = './invite.html';
}
// 获取文件扩展名

Loading…
Cancel
Save