hookehuyr

✨ feat: 调整地图标题获取方式

......@@ -35,9 +35,9 @@ const keepPages = computed(() => store.getKeepPages)
// TAG: 全局设置页面标题
const $route = useRoute();
watchEffect(
() => useTitle($route.meta.title)
)
// watchEffect(
// () => useTitle($route.meta.title)
// )
// TAG: 全局配置Toast
// Toast.setDefaultOptions({
......
......@@ -324,6 +324,8 @@ export default {
});
// 设置贴片地图
this.setTitleLayer();
// 地图标题
document.title = data.map.map_title;
//
// setTimeout(() => {
// this.info_height = (0.5 * window.innerHeight);
......
......@@ -334,6 +334,8 @@ export default {
});
// 设置贴片地图
this.setTitleLayer();
// 地图标题
document.title = data.map.map_title;
//
// setTimeout(() => {
// this.info_height = (0.5 * window.innerHeight);
......
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-10-12 15:25:25
* @LastEditTime: 2025-02-25 16:51:14
* @FilePath: /map-demo/src/views/index.vue
* @Description: 公众地图主体页面
-->
......@@ -304,6 +304,8 @@ export default {
});
// 设置贴片地图
this.setTitleLayer();
// 地图标题
document.title = data.map.map_title;
},
watch: {
// show_popup(val) {
......
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-02-10 15:55:58
* @FilePath: /map-demo/src/views/xyx/index.vue
* @LastEditTime: 2025-02-25 18:46:43
* @FilePath: /map-demo/src/views/xys/index.vue
* @Description: 公众地图主体页面
-->
<template>
......@@ -312,6 +312,8 @@ export default {
});
// 设置贴片地图
this.setTitleLayer();
// 地图标题
document.title = data.map.map_title;
},
watch: {
// show_popup(val) {
......