Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fe-app-h5
Overview
Overview
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
万亚飞
fe-app-h5
Commits
d2ad9133
Commit
d2ad9133
authored
Jun 10, 2019
by
万亚飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
title
parent
547fbd34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
JobList.js
src/pages/user/JobList.js
+3
-2
tools.js
src/utils/tools.js
+13
-0
No files found.
src/pages/user/JobList.js
View file @
d2ad9133
import
React
,
{
Component
}
from
'react'
;
import
{
Modal
,
Toast
}
from
'antd-mobile'
;
import
classNames
from
'classnames'
;
import
{
linkTo
}
from
'@/utils/tools'
;
import
{
linkTo
,
setTitle
}
from
'@/utils/tools'
;
import
TrainItem
from
'../../Components/page/user/TrainItem'
;
import
TabBar
from
'../../Components/page/user/TabBar'
;
import
{
MATERIAL_ARR
}
from
'../../static/js/constant'
;
...
...
@@ -72,7 +72,8 @@ class JobList extends Component {
};
}
componentWillMount
()
{
document
.
title
=
'执业背景'
;
setTitle
(
'执业背景'
);
// document.title = '执业背景';
this
.
setState
({
tabIndex
:
parseInt
(
getParameterByName
(
'index'
,
location
.
href
))
||
0
});
...
...
src/utils/tools.js
View file @
d2ad9133
...
...
@@ -65,3 +65,16 @@ export function linkTo(url) {
// app().goPage(`${location.origin}${url}`);
// app().gotoOCChat('壹点零', `${location.origin}${url}`);
}
export
function
setTitle
(
title
)
{
document
.
title
=
title
;
if
(
navigator
.
userAgent
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
))
{
const
hackIframe
=
document
.
createElement
(
'iframe'
);
hackIframe
.
style
.
display
=
'none'
;
hackIframe
.
src
=
'/favicon.ico?r='
+
Math
.
random
();
document
.
body
.
appendChild
(
hackIframe
);
setTimeout
(
_
=>
{
document
.
body
.
removeChild
(
hackIframe
);
},
300
);
}
}
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