Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
CivManage
Commits
5c72167c
Commit
5c72167c
authored
Feb 28, 2023
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改开启代理后favicon读取不到问题
parent
29339114
Pipeline
#68205
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
app.js
src/app.js
+8
-0
index.js
src/containers/App/index.js
+2
-2
No files found.
src/app.js
View file @
5c72167c
...
...
@@ -23,6 +23,14 @@ import history from './utils/history';
const
initialState
=
Immutable
.
Map
();
const
store
=
configureStore
(
initialState
,
history
);
const
MOUNT_NODE
=
document
.
getElementById
(
'app'
);
const
handleIcoCreate
=
icoUrl
=>
{
var
link
=
document
.
querySelector
(
"link[rel*='icon']"
)
||
document
.
createElement
(
'link'
);
link
.
type
=
'image/x-icon'
;
link
.
rel
=
'shortcut icon'
;
link
.
href
=
icoUrl
;
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
link
);
};
handleIcoCreate
(
window
.
location
.
origin
+
'/civmanage/favicon.ico'
);
const
render
=
()
=>
{
ReactDOM
.
render
(
<
Provider
store
=
{
store
}
>
...
...
src/containers/App/index.js
View file @
5c72167c
...
...
@@ -27,8 +27,8 @@ export default appConnector(function App(props) {
};
return
(
<>
<
Helmet
titleTemplate
=
"%s -
运维平台"
defaultTitle
=
"
运维平台"
>
<
meta
name
=
"description"
content
=
"运维平台"
/>
<
Helmet
titleTemplate
=
"%s -
熊猫智慧水务运维平台"
defaultTitle
=
"熊猫智慧水务
运维平台"
>
<
meta
name
=
"description"
content
=
"
熊猫智慧水务
运维平台"
/>
<
/Helmet
>
<
Router
basename
=
{
BASENAME
}
getUserConfirmation
=
{
getConfirmation
}
>
<
Authozed
...
...
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