Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cauchy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
cauchy-ui
Commits
92f63ecb
Commit
92f63ecb
authored
Aug 16, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix:document.title未修复问题
parent
9a74a451
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
module.js
src/store/module.js
+14
-1
No files found.
src/store/module.js
View file @
92f63ecb
...
...
@@ -40,7 +40,20 @@ const mutations = {
if
(
title
)
{
state
.
title
=
title
;
}
document
.
title
=
state
.
title
;
setTimeout
(
function
()
{
//利用iframe的onload事件刷新页面
document
.
title
=
state
.
title
;
var
iframe
=
document
.
createElement
(
'
iframe
'
);
iframe
.
style
.
visibility
=
'
hidden
'
;
iframe
.
style
.
width
=
'
1px
'
;
iframe
.
style
.
height
=
'
1px
'
;
iframe
.
onload
=
function
()
{
setTimeout
(
function
()
{
document
.
body
.
removeChild
(
iframe
);
},
0
);
};
document
.
body
.
appendChild
(
iframe
);
},
0
);
},
[
types
.
CHANGE_META
](
state
,
meta
)
{
for
(
let
i
in
meta
)
{
...
...
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