Skip to content

Commit

Permalink
fix: 解决国际化不能切换的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwumm committed Jan 13, 2025
1 parent c105a58 commit 57a8290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: 白雾茫茫丶<baiwumm.com>
* @Date: 2025-01-03 15:16:03
* @LastEditors: 白雾茫茫丶<baiwumm.com>
* @LastEditTime: 2025-01-07 09:52:57
* @LastEditTime: 2025-01-13 13:54:37
* @Description: 全局中间件
*/

Expand All @@ -29,7 +29,7 @@ export default auth(async (req: NextRequest) => {
return NextResponse.json(responseMessage(null, '请先登录', -1));
}
// 如果不是GET请求,返回一个带有消息的响应
return NextResponse.json(responseMessage(null, '演示系统,禁止操作', -1));
// return NextResponse.json(responseMessage(null, '演示系统,禁止操作', -1));
}

// 检查是否为不受保护的路由
Expand Down

0 comments on commit 57a8290

Please sign in to comment.