feat(前端): 实现Seed抓取的异步交互与提示功能

- 将链接按钮改为带加载状态的交互按钮
- 添加异步请求逻辑,包含防抖和加载指示
- 实现三种状态的Toast提示(成功/无新增/错误)
- 添加相关CSS样式和交互逻辑
This commit is contained in:
2025-12-14 16:51:46 +08:00
parent a06c07470d
commit 5bf2c1e80d
4 changed files with 145 additions and 2 deletions

View File

@@ -43,9 +43,10 @@
<section class="sidebar-section">
<h2>控制台</h2>
<div class="action-group">
<a class="btn primary full-width" href="/api/seed" target="_blank">
<button id="seedTrigger" class="btn primary full-width" type="button">
<span class="icon"></span> 触发 Seed 抓取
</a>
<span class="btn-spinner" aria-hidden="true"></span>
</button>
</div>
</section>