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
961413d5
Commit
961413d5
authored
Aug 10, 2022
by
lihonglin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/ReactWeb5/CivWeb
parents
b99b8c0b
5d52e345
Pipeline
#57416
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
BasicLayout.less
src/layouts/BasicLayout.less
+4
-2
index.js
src/pages/bootpage/index.js
+3
-6
No files found.
src/layouts/BasicLayout.less
View file @
961413d5
...
...
@@ -660,4 +660,6 @@
padding-left: 30px!important;
}
\ No newline at end of file
:global(.@{ant-prefix}-pro-sider-fixed) {
width: 100%;
}
\ No newline at end of file
src/pages/bootpage/index.js
View file @
961413d5
...
...
@@ -13,8 +13,7 @@ const BootPageTemplate = {
default
:
PandaBootPage
,
};
const
BootPage
=
()
=>
{
const
BootPage
=
props
=>
{
const
[
info
,
setInfo
]
=
useState
({
first
:
true
,
loading
:
true
,
...
...
@@ -35,7 +34,7 @@ const BootPage = () => {
setInfo
({
first
:
false
,
loading
:
false
,
error
:
true
});
return
;
}
if
(
data
===
null
)
notification
.
info
({
message
:
'提示'
,
duration
:
3
,
description
:
'未配置系统引导页'
});
//
if (data === null) notification.info({ message: '提示', duration: 3, description: '未配置系统引导页' });
setTemplate
(
data
);
setInfo
({
first
:
false
,
loading
:
false
,
error
:
false
});
})
...
...
@@ -46,9 +45,7 @@ const BootPage = () => {
},
[]);
return
(
<
SecurityLayout
>
{
info
.
loading
?
<
Spin
/>
:
info
.
error
?
<
Empty
/>
:
<
RenderComponent
/>
}
<
/SecurityLayout
>
<
SecurityLayout
>
{
info
.
loading
?
<
Spin
/>
:
info
.
error
?
<
Empty
/>
:
<
RenderComponent
{...
props
}
/>}</
SecurityLayout
>
);
};
...
...
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