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
f10479a5
Commit
f10479a5
authored
Dec 07, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
021312e7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
dataassetmanager.js
src/service/dataassetmanager.js
+2
-2
index.jsx
src/view/Manage/AssetDraft/index.jsx
+1
-1
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+1
-1
No files found.
src/service/dataassetmanager.js
View file @
f10479a5
...
@@ -317,7 +317,7 @@ export function getTemplates() {
...
@@ -317,7 +317,7 @@ export function getTemplates() {
}
}
export
function
checkAdmin
()
{
export
function
checkAdmin
()
{
return
Post
JSON
(
"/dataassetmanager/dataAssetApi/checkCurrentUserIsAdmin"
)
return
Post
(
"/dataassetmanager/dataAssetApi/checkCurrentUserIsAdmin"
)
}
}
export
function
getDrafts
(
payload
)
{
export
function
getDrafts
(
payload
)
{
...
@@ -341,7 +341,7 @@ export function getDraftAssetPaths(payload) {
...
@@ -341,7 +341,7 @@ export function getDraftAssetPaths(payload) {
}
}
export
function
checkDraftEditable
(
payload
)
{
export
function
checkDraftEditable
(
payload
)
{
return
Post
JSON
(
"/dataassetmanager/draftApi/checkDraftEditable"
,
payload
)
return
Post
(
"/dataassetmanager/draftApi/checkDraftEditable"
,
payload
)
}
}
export
function
publishDrafts
(
payload
)
{
export
function
publishDrafts
(
payload
)
{
...
...
src/view/Manage/AssetDraft/index.jsx
View file @
f10479a5
...
@@ -137,7 +137,7 @@ const FC = (props) => {
...
@@ -137,7 +137,7 @@ const FC = (props) => {
dispatch
({
dispatch
({
type
:
'assetmanage.checkAdmin'
,
type
:
'assetmanage.checkAdmin'
,
callback
:
(
data
)
=>
{
callback
:
(
data
)
=>
{
setAdmin
(
data
)
setAdmin
(
(
data
===
'true'
)?
true
:
false
)
}
}
})
})
}
}
...
...
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
f10479a5
...
@@ -417,7 +417,7 @@ const AssetAction = (props) => {
...
@@ -417,7 +417,7 @@ const AssetAction = (props) => {
params
params
},
},
callback
:
value
=>
{
callback
:
value
=>
{
setEdit
(
value
);
setEdit
(
value
===
'true'
?
true
:
false
);
}
}
})
})
}
}
...
...
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