mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 00:57:13 +08:00 
			
		
		
		
	fix: 修复 mock 被错误关闭的问题
This commit is contained in:
		| @@ -3,8 +3,9 @@ | ||||
| export default ({ mock, setup }: { mock?: boolean; setup: () => void }) => { | ||||
|   // 仅在开发环境启用 mock | ||||
|   // if (mock !== false && debug) setup(); | ||||
|  | ||||
|   // 在生产环境也启用 mock | ||||
|   if (mock) setup(); | ||||
|   if (mock !== false) setup(); | ||||
| }; | ||||
|  | ||||
| export const successResponseWrap = (data: unknown) => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user