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
sunyihao
bkunyun
Commits
11a35e35
Commit
11a35e35
authored
Jul 08, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除不必要的console.log
parent
24d0d635
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
18 deletions
+6
-18
http.ts
src/api/http.ts
+0
-1
index.tsx
src/views/Project/ProjectData/index.tsx
+0
-2
index.tsx
src/views/Project/ProjectSetting/ProjectMembers/index.tsx
+0
-1
index.tsx
...kbench/workbenchTemplate/components/AddTemplate/index.tsx
+1
-5
index.tsx
...iews/Project/ProjectWorkbench/workbenchTemplate/index.tsx
+0
-4
index.tsx
src/views/demo/index.tsx
+5
-5
No files found.
src/api/http.ts
View file @
11a35e35
...
...
@@ -128,7 +128,6 @@ export class Http {
if
(
newConfig
?.
headers
[
'Content-Type'
]
===
"application/x-www-form-urlencoded"
)
{
console
.
log
(
222
)
newConfig
.
data
=
qs
.
stringify
(
data
);
}
return
newConfig
...
...
src/views/Project/ProjectData/index.tsx
View file @
11a35e35
...
...
@@ -453,10 +453,8 @@ const ProjectData = observer(() => {
// 下载文件
const
hanleDownloadFile
=
(
item
:
any
)
=>
{
console
.
log
(
item
);
const
downloadPath
=
path
===
"/"
?
`/
${
item
.
name
}
`
:
`
${
path
}
/
${
item
.
name
}
`
;
console
.
log
(
downloadPath
);
CloudEController
.
JobFileDownload
(
downloadPath
,
fileToken
as
string
,
...
...
src/views/Project/ProjectSetting/ProjectMembers/index.tsx
View file @
11a35e35
...
...
@@ -103,7 +103,6 @@ const ProjectMembers = observer(() => {
.then((res) =
>
{
const
{
data
=
{}
}
=
res
;
setTableData
(
data
?.
members
||
[]);
console
.
log
(
data
?.
projectRole
,
data
?.
projectRole
);
setProjectRole
(
data
?.
projectRole
||
""
);
}
);
}, [currentProjectStore?.currentProjectInfo, http]);
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/components/AddTemplate/index.tsx
View file @
11a35e35
...
...
@@ -44,9 +44,7 @@ const AddTemplate = observer((props: IAddTemplateProps) => {
const
productId
=
toJS
(
currentProjectStore
.
currentProductInfo
.
id
);
const
{
setShowAddTemplate
,
getTemplateInfo
}
=
props
;
const
handleSearch
=
(
value
:
string
)
=>
{
console
.
log
(
value
);
};
const
handleSearch
=
(
value
:
string
)
=>
{};
/** 可增加模板列表 */
const
[
addTemplateList
,
setAddTemplateList
]
=
useState
([]);
...
...
@@ -83,7 +81,6 @@ const AddTemplate = observer((props: IAddTemplateProps) => {
});
const
handleAddTemplate
=
()
=>
{
console
.
log
(
"handleAddTemplate"
);
addTemplate
({
projectId
:
projectId
as
string
,
workflowSpecIds
:
selectTemplateData
,
...
...
@@ -93,7 +90,6 @@ const AddTemplate = observer((props: IAddTemplateProps) => {
// 添加工作流模板-获取模板列表
const
{
run
:
getAddTemplateList
}
=
useMyRequest
(
getAddWorkbenchTemplate
,
{
onSuccess
:
(
result
:
any
)
=>
{
console
.
log
(
result
);
setAddTemplateList
(
result
.
data
);
// setOpenAddTemplate(true);
},
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/index.tsx
View file @
11a35e35
...
...
@@ -69,10 +69,6 @@ const ProjectMembers = observer(() => {
});
},
[
currentProjectStore
.
currentProjectInfo
.
id
,
getTemplateInfo
]);
useEffect
(()
=>
{
console
.
log
(
"projectIdData: "
,
projectIdData
);
},
[
projectIdData
]);
/** 删除模板 */
const
deleteTemplate
=
()
=>
{
delTemplate
({
...
...
src/views/demo/index.tsx
View file @
11a35e35
import
{
useMessage
}
from
"@/components/MySnackbar"
;
import
usePass
from
"@/hooks/usePass"
;
//
import usePass from "@/hooks/usePass";
import
{
operation
,
route
}
from
"@/router"
;
import
{
Button
}
from
"@mui/material"
;
import
{
Box
}
from
"@mui/system"
;
...
...
@@ -11,12 +11,12 @@ const Demo = ({
childrenRoutes
?:
Array
<
route
|
operation
>
;
})
=>
{
const
message
=
useMessage
();
const
isPass
=
usePass
();
//
const isPass = usePass();
useEffect
(()
=>
{
console
.
log
(
isPass
(
"PROJECT_OVERIVEW_CREATE"
),
"11111111111"
);
console
.
log
(
isPass
(
"PROJECT_SUMMARY_MEMBER"
),
"2222222"
);
console
.
log
(
isPass
(
"test"
),
"33333"
);
//
console.log(isPass("PROJECT_OVERIVEW_CREATE"), "11111111111");
//
console.log(isPass("PROJECT_SUMMARY_MEMBER"), "2222222");
//
console.log(isPass("test"), "33333");
// eslint-disable-next-line react-hooks/exhaustive-deps
},
[]);
...
...
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