Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
C
cmscenter
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吕祺
cmscenter
Commits
52b0e259
Commit
52b0e259
authored
Jul 15, 2021
by
吕祺
⛹🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c9414892
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
post.js
pages/post.js
+5
-3
No files found.
pages/post.js
View file @
52b0e259
...
...
@@ -21,11 +21,13 @@ export default class PostPage extends React.Component {
componentDidMount
()
{
// let date = document.location.href.match(/d=[^=&]*/)
// let type = document.location.href.match(/t=[^=&]*/)
let
title
=
document
.
location
.
href
.
match
(
/t=
[^
=&
]
*
/
)
title
=
decodeURI
(
title
)
if
(
!
date
||
date
.
length
===
0
||
!
type
||
typ
e
.
length
===
0
)
{
let
title
=
document
.
location
.
href
.
match
(
/t=
([^
=&
]
*
)
/
)
if
(
!
title
||
titl
e
.
length
===
0
)
{
return
null
}
title
=
decodeURI
(
title
[
1
])
// date = date[0].slice(2)
// type = type[0].slice(2)
...
...
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