Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
pro-blocks
Commits
2797662f
Commit
2797662f
authored
Jul 16, 2018
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimization: Slight performance optimization
parent
15c8853a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
11 deletions
+20
-11
config/config.js
config/config.js
+14
-6
src/pages/Dashboard/Analysis.js
src/pages/Dashboard/Analysis.js
+5
-2
src/pages/document.ejs
src/pages/document.ejs
+1
-3
No files found.
config/config.js
View file @
2797662f
...
...
@@ -21,7 +21,6 @@ export default {
// },
// ],
],
disableServiceWorker
:
true
,
locale
:
{
enable
:
true
,
// default false
default
:
'
zh-CN
'
,
// default zh-CN
...
...
@@ -209,7 +208,6 @@ export default {
theme
:
{
'
card-actions-background
'
:
'
#f5f8fa
'
,
},
// entry: 'src/index.js', // TODO remove
extraBabelPlugins
:
[[
'
import
'
,
{
libraryName
:
'
antd
'
,
libraryDirectory
:
'
es
'
,
style
:
true
}]],
env
:
{
...
...
@@ -219,7 +217,6 @@ export default {
},
externals
:
{
'
@antv/data-set
'
:
'
DataSet
'
,
bizcharts
:
'
BizCharts
'
,
rollbar
:
'
rollbar
'
,
},
alias
:
{
...
...
@@ -229,9 +226,6 @@ export default {
common
:
path
.
resolve
(
__dirname
,
'
../src/common/
'
),
},
ignoreMomentLocale
:
true
,
publicPath
:
'
/
'
,
// TODO check hash config
// hash: true,
lessLoaderOptions
:
{
javascriptEnabled
:
true
,
},
...
...
@@ -253,4 +247,18 @@ export default {
},
},
disableFastClick
:
true
,
manifest
:
{
name
:
'
ant-design-pro
'
,
background_color
:
'
#FFF
'
,
description
:
'
An out-of-box UI solution for enterprise applications as a React boilerplate.
'
,
display
:
'
standalone
'
,
start_url
:
'
/index.html
'
,
icons
:
[
{
src
:
'
/favicon.png
'
,
sizes
:
'
48x48
'
,
type
:
'
image/png
'
,
},
],
},
};
src/pages/Dashboard/Analysis.js
View file @
2797662f
...
...
@@ -73,8 +73,10 @@ class Analysis extends Component {
componentDidMount
()
{
const
{
dispatch
}
=
this
.
props
;
dispatch
({
type
:
'
chart/fetch
'
,
this
.
reqRef
=
requestAnimationFrame
(()
=>
{
dispatch
({
type
:
'
chart/fetch
'
,
});
});
}
...
...
@@ -83,6 +85,7 @@ class Analysis extends Component {
dispatch
({
type
:
'
chart/clear
'
,
});
cancelAnimationFrame
(
this
.
reqRef
);
}
handleChangeSalesType
=
e
=>
{
...
...
src/pages/document.ejs
View file @
2797662f
...
...
@@ -6,11 +6,9 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Ant Design Pro
</title>
<link
rel=
"manifest"
href=
"/manifest.json"
>
<link
rel=
"icon"
href=
"/favicon.png"
type=
"image/x-icon"
>
<!-- rollbar -->
<script
src=
"https://gw.alipayobjects.com/os/rmsportal/nGVBgVyXzzmbAqevIAPy.js"
>
</script>
<!-- bizcharts -->
<script
src=
" https://gw.alipayobjects.com/os/rmsportal/TKSqiyoUxzrHoMwjViwA.js "
></script>
<script
src=
"https://gw.alipayobjects.com/os/antv/assets/data-set/0.8.7/data-set.min.js"
></script>
</head>
...
...
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