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
cb316db1
Commit
cb316db1
authored
5 months ago
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 乐山天气获取
parent
ed846ab9
Pipeline
#94354
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
index.js
src/pages/user/login/template/project/leshan/index.js
+2
-15
No files found.
src/pages/user/login/template/project/leshan/index.js
View file @
cb316db1
...
...
@@ -33,20 +33,7 @@ const LeshanLogin = forwardRef((props, _ref) => {
const
formRef
=
useRef
(
null
);
const
[
isQrcode
,
setIsQrcode
]
=
useState
(
false
);
const
[
weather
,
setWeather
]
=
useState
({
province
:
'四川'
,
city
:
'乐山市'
,
adcode
:
'511100'
,
weather
:
'雾'
,
temperature
:
'10'
,
winddirection
:
'东南'
,
windpower
:
'≤3'
,
humidity
:
'84'
,
reporttime
:
'2024-11-29 10:06:41'
,
temperature_float
:
'10.0'
,
humidity_float
:
'84.0'
,
weatherImg
:
0
,
});
const
[
weather
,
setWeather
]
=
useState
(
null
);
const
[
status
,
setStatus
]
=
useState
(
'normal'
);
const
[
autoLogin
,
setAutoLogin
]
=
useState
(
false
);
const
[
submitting
,
setSubmitting
]
=
useState
(
false
);
...
...
@@ -176,7 +163,7 @@ const LeshanLogin = forwardRef((props, _ref) => {
};
},
[
props
.
loginMode
]);
useEffect
(()
=>
{
//
getWeather();
getWeather
();
const
timer
=
setInterval
(()
=>
{
setDateObj
({
curTime
:
moment
().
format
(
'HH:mm:ss'
),
...
...
This diff is collapsed.
Click to expand it.
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