fix: 修复 mock 被错误关闭的问题
This commit is contained in:
parent
b86fe329d0
commit
a34070ffed
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user