Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
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
Administrator
bkunyun
Commits
42e28f8f
Commit
42e28f8f
authored
Oct 25, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 应用环境查看详情时,点返回依然在应用环境tab
parent
d3289956
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
index.tsx
...r/UserResources/UserResourcesEnvironment/SeeEnv/index.tsx
+5
-1
index.tsx
src/views/ResourceCenter/UserResources/index.tsx
+3
-1
No files found.
src/views/ResourceCenter/UserResources/UserResourcesEnvironment/SeeEnv/index.tsx
View file @
42e28f8f
...
@@ -144,7 +144,11 @@ const SeeEnv = () => {
...
@@ -144,7 +144,11 @@ const SeeEnv = () => {
className=
{
style
.
goBackIcon
}
className=
{
style
.
goBackIcon
}
src=
{
goback
}
src=
{
goback
}
alt=
""
alt=
""
onClick=
{
()
=>
navigate
(
"/utility/resourceCenter/userResources"
)
}
onClick=
{
()
=>
navigate
(
"/utility/resourceCenter/userResources"
,
{
state
:
{
defaultTab
:
"USERRESOURCES_ENVIRONMENT"
},
})
}
/>
/>
<
div
className=
{
style
.
title
}
>
{
info
.
title
}
</
div
>
<
div
className=
{
style
.
title
}
>
{
info
.
title
}
</
div
>
<
div
className=
{
style
.
type
}
>
<
div
className=
{
style
.
type
}
>
...
...
src/views/ResourceCenter/UserResources/index.tsx
View file @
42e28f8f
...
@@ -2,12 +2,14 @@ import style from "./index.module.css";
...
@@ -2,12 +2,14 @@ import style from "./index.module.css";
import
usePass
from
"@/hooks/usePass"
;
import
usePass
from
"@/hooks/usePass"
;
import
UserResourcesTemplate
from
"./UserResourcesTemplate"
;
import
UserResourcesTemplate
from
"./UserResourcesTemplate"
;
import
UserResourcesEnvironment
from
"./UserResourcesEnvironment"
;
import
UserResourcesEnvironment
from
"./UserResourcesEnvironment"
;
import
{
useLocation
}
from
"react-router-dom"
;
import
{
useMemo
}
from
"react"
;
import
{
useMemo
}
from
"react"
;
import
Tabs
from
"@/components/mui/MyTabs"
;
import
Tabs
from
"@/components/mui/MyTabs"
;
import
WorkflowOperator
from
"./WorkflowOperator"
;
import
WorkflowOperator
from
"./WorkflowOperator"
;
import
OperatorDetails
from
"./WorkflowOperator/components/OperatorDetails"
;
import
OperatorDetails
from
"./WorkflowOperator/components/OperatorDetails"
;
const
UserResources
=
()
=>
{
const
UserResources
=
()
=>
{
const
isPass
=
usePass
();
const
isPass
=
usePass
();
const
location
:
any
=
useLocation
();
const
tabList
=
useMemo
(()
=>
{
const
tabList
=
useMemo
(()
=>
{
return
[
return
[
{
{
...
@@ -36,7 +38,7 @@ const UserResources = () => {
...
@@ -36,7 +38,7 @@ const UserResources = () => {
<
Tabs
<
Tabs
title=
"个人资源"
title=
"个人资源"
tabList=
{
tabList
}
tabList=
{
tabList
}
defaultValue=
{
"USERRESOURCES_TEMPLATE"
}
defaultValue=
{
location
?.
state
?.
defaultTab
||
"USERRESOURCES_TEMPLATE"
}
tabPanelSx=
{
{
padding
:
"0"
}
}
tabPanelSx=
{
{
padding
:
"0"
}
}
/>
/>
{
/* <OperatorDetails /> */
}
{
/* <OperatorDetails /> */
}
...
...
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