From ae8712eb83ac637f9403a594109f21039c64ae6b Mon Sep 17 00:00:00 2001 From: ZIA-Hans <1025013204@qq.com> Date: Sun, 27 Oct 2024 01:32:23 +0800 Subject: [PATCH] fix: The lock api does not call pageService's update method correctly --- mockServer/src/services/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mockServer/src/services/app.js b/mockServer/src/services/app.js index 60821e43d..6af7487d0 100644 --- a/mockServer/src/services/app.js +++ b/mockServer/src/services/app.js @@ -10,13 +10,13 @@ * */ -import { pageService } from '../routes/main-routes' +import { mockService } from '../routes/main-routes' import { getResponseData } from '../tool/Common' export default class AppService { async lock(query) { const { id, state } = query - const occupier = state === 'occupy' ? pageService.userInfo : null - await pageService.update(id, { occupier }) + const occupier = state === 'occupy' ? mockService.pageService.userInfo : null + await mockService.pageService.update(id, { occupier }) return getResponseData({ operate: 'success', occupier