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
5d241979
Commit
5d241979
authored
Jun 11, 2024
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改引导页
parent
a92fe3c4
Pipeline
#89657
passed with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
24 deletions
+17
-24
index.js
src/pages/bootpage/index.js
+1
-1
index.js
src/pages/demonstration/index.js
+15
-13
config.js
src/routes/config.js
+1
-10
No files found.
src/pages/bootpage/index.js
View file @
5d241979
...
@@ -16,7 +16,7 @@ import { actionCreators } from '@/containers/App/store';
...
@@ -16,7 +16,7 @@ import { actionCreators } from '@/containers/App/store';
import
{
SERVICE_INTERFACE_SUCCESS_CODE
}
from
'@/constants'
;
import
{
SERVICE_INTERFACE_SUCCESS_CODE
}
from
'@/constants'
;
import
PandaBootPage
from
'./panda'
;
import
PandaBootPage
from
'./panda'
;
import
IntegrationPage
from
'./integration'
;
import
IntegrationPage
from
'./integration'
;
import
Demonstration
from
'./demonstration'
;
import
Demonstration
from
'.
.
/demonstration'
;
const
systemItemName
=
'引导页模板'
;
// 系统配置项名称
const
systemItemName
=
'引导页模板'
;
// 系统配置项名称
const
BootPageTemplate
=
{
const
BootPageTemplate
=
{
...
...
src/pages/demonstration/index.js
View file @
5d241979
...
@@ -465,21 +465,23 @@ const Demonstration = props => {
...
@@ -465,21 +465,23 @@ const Demonstration = props => {
getProjectConfig
();
getProjectConfig
();
getProductConfig
();
getProductConfig
();
},
[
props
.
global
]);
},
[
props
.
global
]);
useEffect
(()
=>
{
useEffect
(()
=>
{},
[]);
const
tk
=
Cookies
.
get
(
'token'
)
||
props
.
global
.
token
;
const
isLogin
=
tk
!==
null
&&
tk
!==
'undefined'
&&
tk
!==
void
0
;
let
client
=
props
?.
global
?.
client
||
sessionStorage
.
getItem
(
'client'
)
||
null
;
client
=
client
!==
'undefined'
&&
!
_
.
isNull
(
client
)
&&
!
_
.
isUndefined
(
client
)
?
client
:
'city'
;
// eslint-disable-next-line no-prototype-builtins
const
generateType
=
props
.
global
&&
props
.
global
.
hasOwnProperty
(
'get'
)
?
props
.
global
.
get
(
'generateType'
)
:
null
;
if
(
!
isLogin
)
{
history
.
push
(
`/user/login?client=
${
client
}${
generateType
||
''
}
`
,
{
reload
:
true
});
clear
();
props
.
logout
();
}
},
[]);
return
(
return
(
<
div
className
=
{
classNames
(
styles
.
demonstration
)}
ref
=
{
ref
}
>
<
div
className
=
{
classNames
(
styles
.
demonstration
)}
ref
=
{
ref
}
>
{
!
linkUrl
?
(
<
div
className
=
{
classNames
(
styles
.
iframeExit
,
'animate__animated'
,
'animate__fadeIn'
)}
onClick
=
{()
=>
props
.
logout
&&
props
.
logout
()}
>
<
div
className
=
{
styles
.
iframeBackLeft
}
>
<
img
src
=
{
arrowLeftImg
}
alt
=
"退出"
/>
<
/div
>
<
div
className
=
{
styles
.
iframeExitIcon
}
>
<
img
src
=
{
backImg
}
alt
=
"退出"
/>
退出
<
/div
>
<
/div
>
)
:
null
}
{
jumpLoading
?
(
{
jumpLoading
?
(
<
div
className
=
{
styles
.
demonstrationLoad
}
key
=
"jumpLoading"
>
<
div
className
=
{
styles
.
demonstrationLoad
}
key
=
"jumpLoading"
>
<
div
style
=
{{
width
:
'285px'
}}
>
<
div
style
=
{{
width
:
'285px'
}}
>
...
...
src/routes/config.js
View file @
5d241979
...
@@ -6,7 +6,6 @@ import { dynamic } from '@wisdom-utils/runtime';
...
@@ -6,7 +6,6 @@ import { dynamic } from '@wisdom-utils/runtime';
import
BasicLayout
from
'../layouts/BasicLayout'
;
import
BasicLayout
from
'../layouts/BasicLayout'
;
import
HomePage
from
'../layouts/TransitionPage'
;
import
HomePage
from
'../layouts/TransitionPage'
;
import
BootPage
from
'../pages/bootpage'
;
import
BootPage
from
'../pages/bootpage'
;
import
Demonstration
from
'../pages/demonstration'
;
// 引导页
import
UsingAnalysis
from
'../pages/cloud/analysis/using'
;
import
UsingAnalysis
from
'../pages/cloud/analysis/using'
;
import
NewProducts
from
'../pages/cloud/introduction/newproducts'
;
import
NewProducts
from
'../pages/cloud/introduction/newproducts'
;
import
CommonMenu
from
'../pages/commonMenu'
;
import
CommonMenu
from
'../pages/commonMenu'
;
...
@@ -54,16 +53,8 @@ export const dyRoutes = (routes, layout, theme) => {
...
@@ -54,16 +53,8 @@ export const dyRoutes = (routes, layout, theme) => {
},
},
{
{
path
:
'/industry'
,
path
:
'/industry'
,
component
:
Demonstration
,
component
:
BootPage
,
},
},
// {
// path: '/demonstration',
// component: Demonstration,
// },
// {
// path: '/industry',
// component: BootPage,
// },
{
{
path
:
'/cloud/analysis/using'
,
path
:
'/cloud/analysis/using'
,
component
:
UsingAnalysis
,
component
:
UsingAnalysis
,
...
...
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