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
de583ac9
Commit
de583ac9
authored
Dec 16, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
1a2118b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
proxy.js
config/proxy.js
+1
-1
index.jsx
src/pages/User/Login/index.jsx
+2
-0
No files found.
config/proxy.js
View file @
de583ac9
...
...
@@ -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/pages/User/Login/index.jsx
View file @
de583ac9
...
...
@@ -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