Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
map-demo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-09-20 15:08:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c27f7a6b93726051a46853cfa4f21b15f12be27f
c27f7a6b
1 parent
983fda3c
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
src/views/bieyuan/map.vue
src/views/bieyuan/map.vue
View file @
c27f7a6
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-20 11:
46:10
* @LastEditTime: 2024-09-20 11:
51:29
* @FilePath: /map-demo/src/views/bieyuan/map.vue
* @Description: 公众地图主体页面
-->
...
...
@@ -350,6 +350,14 @@ export default {
if (marker_id) {
this.$nextTick(() => {
this.addSafeRoute(this.data_path_list[0]);
// 获取当前 URL 的查询参数
let query = { ...this.$route.query };
// 删除 marker_id 参数
delete query.marker_id;
// 使用 Vue Router 更新 URL,并且不刷新页面
this.$router.replace({ query });
});
}
});
...
...
Please
register
or
login
to post a comment