hookehuyr

fix

<!--
* @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 });
});
}
});
......