Commit 2a4a0ab0 authored by TZW's avatar TZW

Merge branch 'master' of http://47.100.234.193:9527/wuhao/ems3.3

parents 678e7294 5cc26b08
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
dev: { dev: {
[defaultSetting.proxypath]: { [defaultSetting.proxypath]: {
// 要代理的地址 // 要代理的地址
target: 'http://192.168.40.64:28001', //jf哥 target: 'http://ems-test.nangaoyun.com/', //jf哥
// target: 'http://192.168.40.203:8000', //dj哥 // target: 'http://192.168.40.203:8000', //dj哥
changeOrigin: true, changeOrigin: true,
}, },
......
...@@ -26,7 +26,7 @@ function strToHump(str) { ...@@ -26,7 +26,7 @@ function strToHump(str) {
} }
export async function getInitialState() { export async function getInitialState() {
let token = localStorage.getItem('TOKENES'); let token = true;
const fetchUserInfo = async () => { const fetchUserInfo = async () => {
try { try {
const msg = await queryCurrentUser(); const msg = await queryCurrentUser();
...@@ -73,8 +73,7 @@ export async function getInitialState() { ...@@ -73,8 +73,7 @@ export async function getInitialState() {
// ProLayout 支持的api https://procomponents.ant.design/components/layout // ProLayout 支持的api https://procomponents.ant.design/components/layout
export const layout = ({ initialState, setInitialState }) => { export const layout = ({ initialState, setInitialState }) => {
let token = localStorage.getItem('TOKENES'); let token = true;
console.log(initialState, history);
return { return {
disableContentMargin: false, disableContentMargin: false,
waterMarkProps: { waterMarkProps: {
......
...@@ -77,6 +77,8 @@ const Login = () => { ...@@ -77,6 +77,8 @@ const Login = () => {
password: values.password, password: values.password,
}; };
try { try {
history.push('/');
return;
// 登录 // 登录
const res = await doFetch({ const res = await doFetch({
url: `/token/oauth/token?grant_type=password&client_id=NGEMS3&client_secret=ems_Nangao@2022&username=${values?.userName}&password=${values?.password}`, url: `/token/oauth/token?grant_type=password&client_id=NGEMS3&client_secret=ems_Nangao@2022&username=${values?.userName}&password=${values?.password}`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment