增加登陆功能,并修改正式环境用5002端口

This commit is contained in:
2026-07-21 16:00:46 +08:00
parent 22f9bccb09
commit 07e88986ab
11 changed files with 691 additions and 8 deletions

View File

@@ -209,7 +209,7 @@ function renderHistory(list) {
<td><span class="${statusClass}">${statusText}</span></td>
<td>
${item.status === 1 && item.file_path ?
`<a href="/api/download?path=${encodeURIComponent(item.file_path)}" class="btn btn-sm btn-success">下载</a>` :
`<a href="/api/download?path=${encodeURIComponent(item.file_path)}&token=${encodeURIComponent(getToken())}" class="btn btn-sm btn-success">下载</a>` :
'-'}
<button class="btn btn-sm btn-danger" onclick="deleteHistory(${item.id})">删除</button>
</td>