Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
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
吴迪
gs1
Commits
bdae3e8b
Commit
bdae3e8b
authored
Jan 08, 2022
by
tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: router.push无效问题
parent
dc346cd6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
App.vue
src/App.vue
+16
-0
No files found.
src/App.vue
View file @
bdae3e8b
...
@@ -4,10 +4,26 @@
...
@@ -4,10 +4,26 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
export
default
{
mounted
()
{
if
(
!!
window
.
ActiveXObject
||
'ActiveXObject'
in
window
)
{
window
.
addEventListener
(
'hashchange'
,
()
=>
{
let
currentPath
=
window
.
location
.
hash
.
slice
(
1
)
if
(
this
.
$route
.
path
!==
currentPath
)
{
this
.
$router
.
push
(
currentPath
);
// 主动更改路由界面
}
},
false
);
}
}
}
</
script
>
<
style
>
<
style
>
.container-fluid
{
.container-fluid
{
padding
:
0
!important
;
padding
:
0
!important
;
}
}
.el-input__inner
::-webkit-input-placeholder
{
.el-input__inner
::-webkit-input-placeholder
{
color
:
#888
!important
color
:
#888
!important
}
}
...
...
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