hookehuyr

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

...@@ -35,9 +35,9 @@ const keepPages = computed(() => store.getKeepPages) ...@@ -35,9 +35,9 @@ const keepPages = computed(() => store.getKeepPages)
35 35
36 // TAG: 全局设置页面标题 36 // TAG: 全局设置页面标题
37 const $route = useRoute(); 37 const $route = useRoute();
38 -watchEffect( 38 +// watchEffect(
39 - () => useTitle($route.meta.title) 39 +// () => useTitle($route.meta.title)
40 -) 40 +// )
41 41
42 // TAG: 全局配置Toast 42 // TAG: 全局配置Toast
43 // Toast.setDefaultOptions({ 43 // Toast.setDefaultOptions({
......
...@@ -324,6 +324,8 @@ export default { ...@@ -324,6 +324,8 @@ export default {
324 }); 324 });
325 // 设置贴片地图 325 // 设置贴片地图
326 this.setTitleLayer(); 326 this.setTitleLayer();
327 + // 地图标题
328 + document.title = data.map.map_title;
327 // 329 //
328 // setTimeout(() => { 330 // setTimeout(() => {
329 // this.info_height = (0.5 * window.innerHeight); 331 // this.info_height = (0.5 * window.innerHeight);
......
...@@ -334,6 +334,8 @@ export default { ...@@ -334,6 +334,8 @@ export default {
334 }); 334 });
335 // 设置贴片地图 335 // 设置贴片地图
336 this.setTitleLayer(); 336 this.setTitleLayer();
337 + // 地图标题
338 + document.title = data.map.map_title;
337 // 339 //
338 // setTimeout(() => { 340 // setTimeout(() => {
339 // this.info_height = (0.5 * window.innerHeight); 341 // this.info_height = (0.5 * window.innerHeight);
......
1 <!-- 1 <!--
2 * @Date: 2023-05-19 14:54:27 2 * @Date: 2023-05-19 14:54:27
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-10-12 15:25:25 4 + * @LastEditTime: 2025-02-25 16:51:14
5 * @FilePath: /map-demo/src/views/index.vue 5 * @FilePath: /map-demo/src/views/index.vue
6 * @Description: 公众地图主体页面 6 * @Description: 公众地图主体页面
7 --> 7 -->
...@@ -304,6 +304,8 @@ export default { ...@@ -304,6 +304,8 @@ export default {
304 }); 304 });
305 // 设置贴片地图 305 // 设置贴片地图
306 this.setTitleLayer(); 306 this.setTitleLayer();
307 + // 地图标题
308 + document.title = data.map.map_title;
307 }, 309 },
308 watch: { 310 watch: {
309 // show_popup(val) { 311 // show_popup(val) {
......
1 <!-- 1 <!--
2 * @Date: 2023-05-19 14:54:27 2 * @Date: 2023-05-19 14:54:27
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-02-10 15:55:58 4 + * @LastEditTime: 2025-02-25 18:46:43
5 - * @FilePath: /map-demo/src/views/xyx/index.vue 5 + * @FilePath: /map-demo/src/views/xys/index.vue
6 * @Description: 公众地图主体页面 6 * @Description: 公众地图主体页面
7 --> 7 -->
8 <template> 8 <template>
...@@ -312,6 +312,8 @@ export default { ...@@ -312,6 +312,8 @@ export default {
312 }); 312 });
313 // 设置贴片地图 313 // 设置贴片地图
314 this.setTitleLayer(); 314 this.setTitleLayer();
315 + // 地图标题
316 + document.title = data.map.map_title;
315 }, 317 },
316 watch: { 318 watch: {
317 // show_popup(val) { 319 // show_popup(val) {
......