Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
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
ReactWeb5
CivWeb
Commits
2449af24
Commit
2449af24
authored
Mar 04, 2025
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 丹棱登录页跳转bug
parent
f9e6a310
Pipeline
#95969
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
19 deletions
+27
-19
index.js
src/pages/user/login/template/project/danling/index.js
+27
-19
No files found.
src/pages/user/login/template/project/danling/index.js
View file @
2449af24
...
@@ -26,29 +26,29 @@ import qrcodePng from './images/1.png';
...
@@ -26,29 +26,29 @@ import qrcodePng from './images/1.png';
import
bg
from
'./images/DL-BG.jpg'
;
import
bg
from
'./images/DL-BG.jpg'
;
const
PopOvercontent
=
()
=>
{
const
PopOvercontent
=
()
=>
{
const
qrcodes
=
window
.
globalConfig
&&
window
.
globalConfig
.
qrcode
;
const
qrcodes
=
window
.
globalConfig
&&
window
.
globalConfig
.
qrcode
;
if
(
qrcodes
)
{
if
(
qrcodes
)
{
return
<
QRCode
value
=
{
qrcodes
}
/>
;
return
<
QRCode
value
=
{
qrcodes
}
/>
;
}
}
return
<
span
>
手持
APP
下载未配置
<
/span>
;
return
<
span
>
手持
APP
下载未配置
<
/span>
;
};
};
const
Login
=
forwardRef
((
props
,
_ref
)
=>
{
const
Login
=
forwardRef
((
props
,
_ref
)
=>
{
const
sliVerify
=
useRef
();
const
sliVerify
=
useRef
();
const
loginFormRef
=
useRef
();
const
loginFormRef
=
useRef
();
const
formRef
=
useRef
(
null
);
const
formRef
=
useRef
(
null
);
const
[
status
,
setStatus
]
=
useState
(
'normal'
);
const
[
status
,
setStatus
]
=
useState
(
'normal'
);
const
[
show
,
setShow
]
=
useState
(
false
);
const
[
show
,
setShow
]
=
useState
(
false
);
const
[
autoLogin
,
setAutoLogin
]
=
useState
(
false
);
const
[
autoLogin
,
setAutoLogin
]
=
useState
(
false
);
const
[
submitting
,
setSubmitting
]
=
useState
(
false
);
const
[
submitting
,
setSubmitting
]
=
useState
(
false
);
const
[
type
,
setType
]
=
useState
(
'Account'
);
const
[
type
,
setType
]
=
useState
(
'Account'
);
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
history
=
useHistory
();
const
history
=
useHistory
();
const
[
action
,
setAction
]
=
useState
(()
=>
new
LoginAction
(
Object
.
assign
({},
props
,
{
history
}),
setVisible
,
false
));
const
[
action
,
setAction
]
=
useState
(()
=>
new
LoginAction
(
Object
.
assign
({},
props
,
{
history
}),
setVisible
,
false
));
const
[
dateObj
,
setDateObj
]
=
useState
({});
const
[
dateObj
,
setDateObj
]
=
useState
({});
const
handleSubmit
=
values
=>
{
const
handleSubmit
=
values
=>
{
/* eslint-disable */
/* eslint-disable */
action
&&
action
&&
(
type
===
'Account'
(
type
===
'Account'
?
action
.
loginHandler
(
values
.
userName
,
values
.
password
,
null
,
autoLogin
,
sliVerify
)
?
action
.
loginHandler
(
values
.
userName
,
values
.
password
,
null
,
autoLogin
,
sliVerify
)
...
@@ -78,10 +78,18 @@ const Login = forwardRef((props, _ref) => {
...
@@ -78,10 +78,18 @@ const Login = forwardRef((props, _ref) => {
action
.
events
.
on
(
'loginVisible'
,
status
=>
{
action
.
events
.
on
(
'loginVisible'
,
status
=>
{
setVisible
(
status
);
setVisible
(
status
);
});
});
action
.
events
.
on
(
'loginHomePage'
,
()
=>
{
props
.
history
.
push
(
`/homePage`
);
});
action
.
events
.
on
(
'loginIndustry'
,
()
=>
{
props
.
history
.
push
(
`/industry`
);
});
return
()
=>
{
return
()
=>
{
action
&&
action
.
events
&&
action
.
events
.
removeAllListeners
(
'loginSuccess'
);
action
&&
action
.
events
&&
action
.
events
.
removeAllListeners
(
'loginSuccess'
);
action
&&
action
.
events
&&
action
.
events
.
removeAllListeners
(
'loginError'
);
action
&&
action
.
events
&&
action
.
events
.
removeAllListeners
(
'loginError'
);
action
&&
action
.
events
&&
action
.
events
.
removeAllListeners
(
'loginVisible'
);
action
&&
action
.
events
&&
action
.
events
.
removeAllListeners
(
'loginVisible'
);
action
&&
action
.
events
&&
action
.
events
.
removeAllListeners
(
'loginHomePage'
);
action
&&
action
.
events
&&
action
.
events
.
removeAllListeners
(
'loginIndustry'
);
};
};
},
[
props
.
loginMode
]);
},
[
props
.
loginMode
]);
...
...
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