Commit bc8d34ba by 杨明

fixed

1 parent ec631ec7
import HttpRequest from "./request";
const config = {
baseUrl: {
dev: "http://192.168.3.115:8101",
prod: "http://config-center-backend.test.glsx.com.cn", //test环境
dev: "http://achievements-system-backend.test.glsx.com.cn",
prod: "http://achievements-system-backend.test.glsx.com.cn", //test环境
},
};
const baseUrl =
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-03-03 10:30:06
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-03-21 15:31:57
* @LastEditTime: 2023-06-13 10:49:19
* @FilePath: \achievements-system-front\src\views\Login\index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -17,7 +17,7 @@ const App = () => {
const { username, password } = values;
const params = { username, password };
loginApi(params)
.then(({ code, data, msg }) => {
.then(({ code, data, message: msg }) => {
console.log(code);
if (code === 200) {
window.sessionStorage.setItem("token", data && data.token);
......@@ -27,7 +27,7 @@ const App = () => {
);
navigate("/emp");
} else {
message.error(msg);
message.error("账号密码错误!");
}
})
.catch(({ message: msg }) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!