加上登录和角色权限,并用 Vue 控制台区分用户与管理员。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-10 22:43:31 +08:00
parent 78601aae5e
commit 8b55b9cf55
36 changed files with 2947 additions and 1007 deletions
+5
View File
@@ -24,6 +24,11 @@ class Settings(BaseSettings):
yield_minute: int = 5
license_months: int = 12
disable_scheduler: bool = False
jwt_secret: str = ""
jwt_expire_minutes: int = 60 * 24
admin_username: str = "admin"
admin_password: str = ""
admin_wallet: str = "admin-root"
model_config = SettingsConfigDict(env_file=".env", extra="ignore")