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
A
ant-design-pro
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
ant-design-pro
Commits
46d8462c
Unverified
Commit
46d8462c
authored
Apr 26, 2019
by
陈帅
Committed by
GitHub
Apr 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm pwa (#4090)
parent
feebab81
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
src/defaultSettings.js
src/defaultSettings.js
+1
-1
src/global.js
src/global.js
+5
-2
No files found.
src/defaultSettings.js
View file @
46d8462c
...
@@ -10,7 +10,7 @@ module.exports = {
...
@@ -10,7 +10,7 @@ module.exports = {
disableLocal
:
false
,
disableLocal
:
false
,
},
},
title
:
'
Ant Design Pro
'
,
title
:
'
Ant Design Pro
'
,
pwa
:
tru
e
,
pwa
:
fals
e
,
// Your custom iconfont Symbol script Url
// Your custom iconfont Symbol script Url
// eg://at.alicdn.com/t/font_1039637_btcrd5co4w.js
// eg://at.alicdn.com/t/font_1039637_btcrd5co4w.js
// 注意:如果需要图标多色,Iconfont 图标项目里要进行批量去色处理
// 注意:如果需要图标多色,Iconfont 图标项目里要进行批量去色处理
...
...
src/global.js
View file @
46d8462c
...
@@ -3,8 +3,6 @@ import { notification, Button, message } from 'antd';
...
@@ -3,8 +3,6 @@ import { notification, Button, message } from 'antd';
import
{
formatMessage
}
from
'
umi-plugin-react/locale
'
;
import
{
formatMessage
}
from
'
umi-plugin-react/locale
'
;
import
defaultSettings
from
'
./defaultSettings
'
;
import
defaultSettings
from
'
./defaultSettings
'
;
window
.
React
=
React
;
const
{
pwa
}
=
defaultSettings
;
const
{
pwa
}
=
defaultSettings
;
// if pwa is true
// if pwa is true
if
(
pwa
)
{
if
(
pwa
)
{
...
@@ -58,4 +56,9 @@ if (pwa) {
...
@@ -58,4 +56,9 @@ if (pwa) {
onClose
:
async
()
=>
{},
onClose
:
async
()
=>
{},
});
});
});
});
}
else
if
(
'
serviceWorker
'
in
navigator
)
{
// eslint-disable-next-line compat/compat
navigator
.
serviceWorker
.
ready
.
then
(
registration
=>
{
registration
.
unregister
();
});
}
}
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