From 6f23175395fbabc4a03cebf7609ecaa844f72aaf Mon Sep 17 00:00:00 2001 From: yuan_yi <1650192445@qq.com> Date: Thu, 28 Apr 2022 15:40:56 +0800 Subject: [PATCH] namePresent --- .../client/src/sections/auth/actions/auth.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/code/VideoAccess-VCMP/web/client/src/sections/auth/actions/auth.js b/code/VideoAccess-VCMP/web/client/src/sections/auth/actions/auth.js index 916f966..050ced8 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/auth/actions/auth.js +++ b/code/VideoAccess-VCMP/web/client/src/sections/auth/actions/auth.js @@ -28,15 +28,15 @@ export function login (username, password) { return Promise.resolve(); } - // return dispatch({ - // type: LOGIN_SUCCESS, - // payload: { - // user: { - // authorized: true, - // displayName: 'TEST' - // } - // }, - // }); + return dispatch({ + type: LOGIN_SUCCESS, + payload: { + user: { + authorized: true, + namePresent: 'TEST' + } + }, + }); return AuthRequest.post(ApiTable.login, { username, password }) .then(user => {