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
75d723a0
Commit
75d723a0
authored
Dec 28, 2020
by
邓晓峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: lint code style
parent
4b6631cd
Pipeline
#21304
passed with stages
in 18 minutes 39 seconds
Changes
4
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
.eslintcache
.eslintcache
+0
-0
package.json
package.json
+0
-1
AvatarDropdown.js
src/components/GlobalHeader/AvatarDropdown.js
+2
-0
RightContent.js
src/components/GlobalHeader/RightContent.js
+5
-1
No files found.
.eslintcache
View file @
75d723a0
This diff is collapsed.
Click to expand it.
package.json
View file @
75d723a0
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
"analyze"
:
"node ./internals/scripts/analyze.js"
,
"analyze"
:
"node ./internals/scripts/analyze.js"
,
"npmcheckversion"
:
"node ./internals/scripts/npmcheckversion.js"
,
"npmcheckversion"
:
"node ./internals/scripts/npmcheckversion.js"
,
"preinstall"
:
"npm run npmcheckversion"
,
"preinstall"
:
"npm run npmcheckversion"
,
"prebuild"
:
"npm run lint"
,
"build"
:
"cross-env NODE_ENV=production node internals/webpack/build.js"
,
"build"
:
"cross-env NODE_ENV=production node internals/webpack/build.js"
,
"build:clean"
:
"rimraf ./build"
,
"build:clean"
:
"rimraf ./build"
,
"start"
:
"cross-env NODE_ENV=development node server --port=$port"
,
"start"
:
"cross-env NODE_ENV=development node server --port=$port"
,
...
...
src/components/GlobalHeader/AvatarDropdown.js
View file @
75d723a0
...
@@ -42,6 +42,8 @@ class AvatarDropdown extends React.Component {
...
@@ -42,6 +42,8 @@ class AvatarDropdown extends React.Component {
return
false
;
return
false
;
}
}
this
.
props
.
updateCurrentIndex
&&
this
.
props
.
updateCurrentIndex
(
0
);
this
.
props
.
history
.
push
(
this
.
props
.
history
.
push
(
`/user/login/?client=
${
window
.
globalConfig
.
client
}
`
,
`/user/login/?client=
${
window
.
globalConfig
.
client
}
`
,
);
);
...
...
src/components/GlobalHeader/RightContent.js
View file @
75d723a0
...
@@ -181,7 +181,7 @@ const GlobalHeaderRight = props => {
...
@@ -181,7 +181,7 @@ const GlobalHeaderRight = props => {
<
OrderIcon
onClick
=
{
handleOrder
}
title
=
"工单"
/>
<
OrderIcon
onClick
=
{
handleOrder
}
title
=
"工单"
/>
<
/div
>
<
/div
>
<
NoticeIconView
title
=
"消息"
/>
<
NoticeIconView
title
=
"消息"
/>
<
Avatar
menu
global
=
{
props
.
global
}
/
>
<
Avatar
menu
global
=
{
props
.
global
}
updateCurrentIndex
=
{
props
.
updateCurrentIndex
}
/
>
{
/* <SelectLang className={styles.action} /> */
}
{
/* <SelectLang className={styles.action} /> */
}
<
/div
>
<
/div
>
);
);
...
@@ -208,6 +208,10 @@ const mapDispatchToProps = dispatch => ({
...
@@ -208,6 +208,10 @@ const mapDispatchToProps = dispatch => ({
clearRecentProduct
()
{
clearRecentProduct
()
{
dispatch
(
actionCreators
.
clearRecentProduct
());
dispatch
(
actionCreators
.
clearRecentProduct
());
},
},
updateCurrentIndex
(
index
)
{
dispatch
(
actionCreators
.
updateCurrentIndex
(
index
))
}
});
});
export
default
connect
(
export
default
connect
(
mapStateToProps
,
mapStateToProps
,
...
...
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