diff --git a/api/app/lib/controllers/auth/index.js b/api/app/lib/controllers/auth/index.js index 3ffdc25..bce6f38 100644 --- a/api/app/lib/controllers/auth/index.js +++ b/api/app/lib/controllers/auth/index.js @@ -180,7 +180,7 @@ async function screenlogin (ctx, next) { } let passwords = Hex.stringify(MD5(password)); - if (username = !userRes.account || passwords != userRes.password) { + if (username != userRes.account || passwords != userRes.password) { message = '账号或密码错误' throw '' } diff --git a/web/client/src/sections/projectManagement/components/projectModel.js b/web/client/src/sections/projectManagement/components/projectModel.js index df63e48..8388382 100644 --- a/web/client/src/sections/projectManagement/components/projectModel.js +++ b/web/client/src/sections/projectManagement/components/projectModel.js @@ -95,7 +95,7 @@ const ProjectModel = ({ dispatch, actions, user, modelData, close, success, proj {!modelData?.id && <> { diff --git a/web/client/src/sections/projectManagement/components/replacement.js b/web/client/src/sections/projectManagement/components/replacement.js index 682550a..85760d7 100644 --- a/web/client/src/sections/projectManagement/components/replacement.js +++ b/web/client/src/sections/projectManagement/components/replacement.js @@ -34,7 +34,7 @@ const Replacement = ({ dispatch, actions, user, close, onOk, }) => { > { e.preventDefault();