From f9ab9e507bc3fcbec58e544cb0685513d06319a0 Mon Sep 17 00:00:00 2001 From: liwenqiang Date: Tue, 29 Oct 2024 15:58:19 +0800 Subject: [PATCH 1/2] revert signin path --- src/api/paths.ts | 2 +- src/boot/msw-server.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/paths.ts b/src/api/paths.ts index 22665a4..c7f5879 100644 --- a/src/api/paths.ts +++ b/src/api/paths.ts @@ -27,6 +27,6 @@ export const SERVER_URL = { STATISTICS: SERVER_PRE.ASSETS.concat('/statistics'), // 统计 COMMENT: SERVER_PRE.ASSETS.concat('/comments'), // 评论 - SIGNIN: SERVER_PRE.ASSETS.concat('/token'), // 登录 + SIGNIN: SERVER_PRE.ASSETS.concat('/signin'), // 登录 SIGNOUT: SERVER_PRE.ASSETS.concat('/signout') // 退出 } diff --git a/src/boot/msw-server.ts b/src/boot/msw-server.ts index 5d4772c..873112d 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() } From 355468afb4b7efecc4bc2176ffb6616553cb3608 Mon Sep 17 00:00:00 2001 From: liwenqiang Date: Tue, 29 Oct 2024 15:59:51 +0800 Subject: [PATCH 2/2] revert signin path --- src/boot/msw-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }