Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
ems3.3
Commits
2a4a0ab0
Commit
2a4a0ab0
authored
Dec 16, 2022
by
TZW
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://47.100.234.193:9527/wuhao/ems3.3
parents
678e7294
5cc26b08
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
proxy.js
config/proxy.js
+1
-1
app.jsx
src/app.jsx
+2
-3
index.jsx
src/pages/User/Login/index.jsx
+2
-0
No files found.
config/proxy.js
View file @
2a4a0ab0
...
...
@@ -13,7 +13,7 @@ export default {
dev
:
{
[
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哥
changeOrigin
:
true
,
},
...
...
src/app.jsx
View file @
2a4a0ab0
...
...
@@ -26,7 +26,7 @@ function strToHump(str) {
}
export
async
function
getInitialState
()
{
let
token
=
localStorage
.
getItem
(
'TOKENES'
)
;
let
token
=
true
;
const
fetchUserInfo
=
async
()
=>
{
try
{
const
msg
=
await
queryCurrentUser
();
...
...
@@ -73,8 +73,7 @@ export async function getInitialState() {
// ProLayout 支持的api https://procomponents.ant.design/components/layout
export
const
layout
=
({
initialState
,
setInitialState
})
=>
{
let
token
=
localStorage
.
getItem
(
'TOKENES'
);
console
.
log
(
initialState
,
history
);
let
token
=
true
;
return
{
disableContentMargin
:
false
,
waterMarkProps
:
{
...
...
src/pages/User/Login/index.jsx
View file @
2a4a0ab0
...
...
@@ -77,6 +77,8 @@ const Login = () => {
password
:
values
.
password
,
};
try
{
history
.
push
(
'/'
);
return
;
// 登录
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
}
`,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment