mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 11:49:02 +08:00
新增奖励兑换模式与奖励设置,并持久化兑换记录
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user