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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
29 deletions
+19
-29
http.ts
src/api/http.ts
+0
-1
index.tsx
src/views/Project/ProjectData/index.tsx
+0
-0
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
+18
-18
No files found.
src/api/http.ts
View file @
11a35e35
...
@@ -128,7 +128,6 @@ export class Http {
...
@@ -128,7 +128,6 @@ export class Http {
if
(
if
(
newConfig
?.
headers
[
'Content-Type'
]
===
"application/x-www-form-urlencoded"
newConfig
?.
headers
[
'Content-Type'
]
===
"application/x-www-form-urlencoded"
)
{
)
{
console
.
log
(
222
)
newConfig
.
data
=
qs
.
stringify
(
data
);
newConfig
.
data
=
qs
.
stringify
(
data
);
}
}
return
newConfig
return
newConfig
...
...
src/views/Project/ProjectData/index.tsx
View file @
11a35e35
This diff is collapsed.
Click to expand it.
src/views/Project/ProjectSetting/ProjectMembers/index.tsx
View file @
11a35e35
...
@@ -103,7 +103,6 @@ const ProjectMembers = observer(() => {
...
@@ -103,7 +103,6 @@ const ProjectMembers = observer(() => {
.then((res) =
>
{
.then((res) =
>
{
const
{
data
=
{}
}
=
res
;
const
{
data
=
{}
}
=
res
;
setTableData
(
data
?.
members
||
[]);
setTableData
(
data
?.
members
||
[]);
console
.
log
(
data
?.
projectRole
,
data
?.
projectRole
);
setProjectRole
(
data
?.
projectRole
||
""
);
setProjectRole
(
data
?.
projectRole
||
""
);
}
);
}
);
}, [currentProjectStore?.currentProjectInfo, http]);
}, [currentProjectStore?.currentProjectInfo, http]);
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/components/AddTemplate/index.tsx
View file @
11a35e35
...
@@ -44,9 +44,7 @@ const AddTemplate = observer((props: IAddTemplateProps) => {
...
@@ -44,9 +44,7 @@ const AddTemplate = observer((props: IAddTemplateProps) => {
const
productId
=
toJS
(
currentProjectStore
.
currentProductInfo
.
id
);
const
productId
=
toJS
(
currentProjectStore
.
currentProductInfo
.
id
);
const
{
setShowAddTemplate
,
getTemplateInfo
}
=
props
;
const
{
setShowAddTemplate
,
getTemplateInfo
}
=
props
;
const
handleSearch
=
(
value
:
string
)
=>
{
const
handleSearch
=
(
value
:
string
)
=>
{};
console
.
log
(
value
);
};
/** 可增加模板列表 */
/** 可增加模板列表 */
const
[
addTemplateList
,
setAddTemplateList
]
=
useState
([]);
const
[
addTemplateList
,
setAddTemplateList
]
=
useState
([]);
...
@@ -83,7 +81,6 @@ const AddTemplate = observer((props: IAddTemplateProps) => {
...
@@ -83,7 +81,6 @@ const AddTemplate = observer((props: IAddTemplateProps) => {
});
});
const
handleAddTemplate
=
()
=>
{
const
handleAddTemplate
=
()
=>
{
console
.
log
(
"handleAddTemplate"
);
addTemplate
({
addTemplate
({
projectId
:
projectId
as
string
,
projectId
:
projectId
as
string
,
workflowSpecIds
:
selectTemplateData
,
workflowSpecIds
:
selectTemplateData
,
...
@@ -93,7 +90,6 @@ const AddTemplate = observer((props: IAddTemplateProps) => {
...
@@ -93,7 +90,6 @@ const AddTemplate = observer((props: IAddTemplateProps) => {
// 添加工作流模板-获取模板列表
// 添加工作流模板-获取模板列表
const
{
run
:
getAddTemplateList
}
=
useMyRequest
(
getAddWorkbenchTemplate
,
{
const
{
run
:
getAddTemplateList
}
=
useMyRequest
(
getAddWorkbenchTemplate
,
{
onSuccess
:
(
result
:
any
)
=>
{
onSuccess
:
(
result
:
any
)
=>
{
console
.
log
(
result
);
setAddTemplateList
(
result
.
data
);
setAddTemplateList
(
result
.
data
);
// setOpenAddTemplate(true);
// setOpenAddTemplate(true);
},
},
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/index.tsx
View file @
11a35e35
...
@@ -69,10 +69,6 @@ const ProjectMembers = observer(() => {
...
@@ -69,10 +69,6 @@ const ProjectMembers = observer(() => {
});
});
},
[
currentProjectStore
.
currentProjectInfo
.
id
,
getTemplateInfo
]);
},
[
currentProjectStore
.
currentProjectInfo
.
id
,
getTemplateInfo
]);
useEffect
(()
=>
{
console
.
log
(
"projectIdData: "
,
projectIdData
);
},
[
projectIdData
]);
/** 删除模板 */
/** 删除模板 */
const
deleteTemplate
=
()
=>
{
const
deleteTemplate
=
()
=>
{
delTemplate
({
delTemplate
({
...
...
src/views/demo/index.tsx
View file @
11a35e35
import
{
useMessage
}
from
"@/components/MySnackbar"
;
import
{
useMessage
}
from
"@/components/MySnackbar"
;
import
usePass
from
"@/hooks/usePass"
;
//
import usePass from "@/hooks/usePass";
import
{
operation
,
route
}
from
"@/router"
;
import
{
operation
,
route
}
from
"@/router"
;
import
{
Button
}
from
"@mui/material"
;
import
{
Button
}
from
"@mui/material"
;
import
{
Box
}
from
"@mui/system"
;
import
{
Box
}
from
"@mui/system"
;
import
{
useEffect
}
from
"react"
;
import
{
useEffect
}
from
"react"
;
const
Demo
=
({
const
Demo
=
({
childrenRoutes
,
childrenRoutes
,
}:
{
}:
{
childrenRoutes
?:
Array
<
route
|
operation
>
;
childrenRoutes
?:
Array
<
route
|
operation
>
;
})
=>
{
})
=>
{
const
message
=
useMessage
();
const
message
=
useMessage
();
const
isPass
=
usePass
();
//
const isPass = usePass();
useEffect
(()
=>
{
useEffect
(()
=>
{
console
.
log
(
isPass
(
"PROJECT_OVERIVEW_CREATE"
),
"11111111111"
);
//
console.log(isPass("PROJECT_OVERIVEW_CREATE"), "11111111111");
console
.
log
(
isPass
(
"PROJECT_SUMMARY_MEMBER"
),
"2222222"
);
//
console.log(isPass("PROJECT_SUMMARY_MEMBER"), "2222222");
console
.
log
(
isPass
(
"test"
),
"33333"
);
//
console.log(isPass("test"), "33333");
// eslint-disable-next-line react-hooks/exhaustive-deps
// eslint-disable-next-line react-hooks/exhaustive-deps
},
[]);
},
[]);
return
(
return
(
<
Box
>
<
Box
>
<
Box
>
{
JSON
.
stringify
(
childrenRoutes
)
}
</
Box
>
<
Box
>
{
JSON
.
stringify
(
childrenRoutes
)
}
</
Box
>
<
Box
>
{
JSON
.
stringify
(
process
.
env
.
NODE_ENV
)
}
</
Box
>
<
Box
>
{
JSON
.
stringify
(
process
.
env
.
NODE_ENV
)
}
</
Box
>
<
Button
onClick=
{
()
=>
message
.
success
(
"测试测试"
)
}
>
message测试
</
Button
>
<
Button
onClick=
{
()
=>
message
.
success
(
"测试测试"
)
}
>
message测试
</
Button
>
</
Box
>
</
Box
>
);
);
};
};
export
default
Demo
;
export
default
Demo
;
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