新增奖励兑换模式与奖励设置,并持久化兑换记录

This commit is contained in:
JSR
2026-03-20 17:59:06 +08:00
parent ad6b0808cb
commit 8155dac75e
22 changed files with 1507 additions and 17 deletions
+4
View File
@@ -73,6 +73,8 @@ function MainContent(): React.JSX.Element {
if (p.startsWith("/settlements")) return "settlements"
if (p.startsWith("/reasons")) return "reasons"
if (p.startsWith("/auto-score")) return "auto-score"
if (p.startsWith("/reward-exchange")) return "reward-exchange"
if (p.startsWith("/reward-settings")) return "reward-settings"
if (p.startsWith("/settings")) return "settings"
return "home"
}, [location.pathname])
@@ -272,6 +274,8 @@ function MainContent(): React.JSX.Element {
if (key === "settlements") navigate("/settlements")
if (key === "reasons") navigate("/reasons")
if (key === "auto-score") navigate("/auto-score")
if (key === "reward-exchange") navigate("/reward-exchange")
if (key === "reward-settings") navigate("/reward-settings")
if (key === "settings") navigate("/settings")
}