Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
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
ReactWeb5
CivWeb
Commits
b57bfa38
Commit
b57bfa38
authored
Apr 15, 2022
by
邓晓峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: remove debugger console
parent
68bd72f9
Pipeline
#48043
skipped with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
4 deletions
+0
-4
cleanRequireCache.js
server/utils/cleanRequireCache.js
+0
-1
index.js
src/containers/App/index.js
+0
-1
initConfig.js
src/initConfig.js
+0
-1
SecurityLayout.js
src/layouts/SecurityLayout.js
+0
-1
No files found.
server/utils/cleanRequireCache.js
View file @
b57bfa38
...
...
@@ -3,7 +3,6 @@ function cleanRequireCache(paths) {
Object
.
keys
(
require
.
cache
).
forEach
(
file
=>
{
if
(
paths
.
some
(
p
=>
winPath
(
file
).
indexOf
(
p
)
>
-
1
))
{
console
.
log
(
file
);
delete
require
.
cache
[
file
];
}
});
...
...
src/containers/App/index.js
View file @
b57bfa38
...
...
@@ -11,7 +11,6 @@ const pkg = require('../../../package.json');
const
{
renderRoutes
}
=
helpers
;
const
config
=
require
(
'../../../config/config'
);
function
App
(
props
)
{
console
.
log
(
props
);
const
metaSecurity
=
/https/
.
test
(
window
.
location
.
protocol
)
?
(
<
meta
httpEquiv
=
"Content-Security-Policy"
content
=
"upgrade-insecure-requests"
/>
)
:
null
;
...
...
src/initConfig.js
View file @
b57bfa38
...
...
@@ -128,7 +128,6 @@ export const initGlobalConfig = () => {
render
({
appContent
:
''
,
loading
:
true
});
})
.
catch
(
error
=>
{
console
.
log
(
error
);
store
.
dispatch
(
actionCreators
.
getConfigError
(
error
));
});
});
...
...
src/layouts/SecurityLayout.js
View file @
b57bfa38
...
...
@@ -19,7 +19,6 @@ class SecurityLayout extends React.Component {
}
componentWillReceiveProps
(
nextProps
)
{
debugger
const
products
=
(
this
.
props
.
global
.
products
||
[]).
map
(
item
=>
{
if
(
item
.
PackageName
===
'civweb4'
)
{
return
'web4_console'
...
...
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