更新数据库配置为niumall,添加用户登出功能并集成axios

This commit is contained in:
2025-09-18 17:13:28 +08:00
parent c30c99e086
commit 8637c05970
7 changed files with 515 additions and 3 deletions

View File

@@ -39,6 +39,7 @@ const jwt = require('jsonwebtoken')
* example: 权限不足
*/
const jwt = require('jsonwebtoken')
// 从环境变量或配置中获取JWT密钥
const JWT_SECRET = process.env.JWT_SECRET || 'your_jwt_secret_key'