Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
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
zhaochengxiang
szse
Commits
2e3f725f
Commit
2e3f725f
authored
Mar 10, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自定义资产目录允许删除
parent
caccf644
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
AssetTree.jsx
src/view/Manage/AssetManage/Component/AssetTree.jsx
+2
-6
No files found.
src/view/Manage/AssetManage/Component/AssetTree.jsx
View file @
2e3f725f
...
@@ -376,9 +376,7 @@ const AssetTree = (props) => {
...
@@ -376,9 +376,7 @@ const AssetTree = (props) => {
}
}
}
}
const
deleteDir
=
()
=>
{
const
deleteDir
=
()
=>
{
if
(
currentRightClickDir
.
type
===
'custom'
)
return
;
if
(
currentRightClickDir
.
nodeId
)
{
if
(
currentRightClickDir
.
nodeId
)
{
modal
.
confirm
({
modal
.
confirm
({
title
:
'提示'
,
title
:
'提示'
,
...
@@ -669,11 +667,9 @@ const AssetTree = (props) => {
...
@@ -669,11 +667,9 @@ const AssetTree = (props) => {
<
RcItem
id=
"down"
onClick=
{
()
=>
{
moveNode
(
-
1
);
}
}
>
<
RcItem
id=
"down"
onClick=
{
()
=>
{
moveNode
(
-
1
);
}
}
>
下移目录
下移目录
</
RcItem
>
</
RcItem
>
{
<
RcItem
id=
"delete"
onClick=
{
deleteDir
}
>
(
currentRightClickDir
?.
type
!==
'custom'
)
&&
<
RcItem
id=
"delete"
onClick=
{
deleteDir
}
>
删除目录
删除目录
</
RcItem
>
</
RcItem
>
}
</
RcMenu
>
</
RcMenu
>
{
contextHolder
}
{
contextHolder
}
...
...
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