diff --git a/src/boot/msw-server.ts b/src/boot/msw-server.ts index 873112d..5d4772c 100644 --- a/src/boot/msw-server.ts +++ b/src/boot/msw-server.ts @@ -4,7 +4,7 @@ import { handlers } from 'src/mocks/handlers' // 您的请求处理程序 export default boot(() => { // dev - if (process.env.DEV) { + if (!process.env.DEV) { const worker = setupWorker(...handlers) worker.start() }