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
2025-02-25 18:47:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d730ca125ce2cb4a3d5d5e335098683c5a8e3e74
d730ca12
1 parent
861ea8ef
✨ feat: 调整地图标题获取方式
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
6 deletions
src/App.vue
src/views/bieyuan/map.vue
src/views/by/map.vue
src/views/index.vue
src/views/xys/index.vue
src/App.vue
View file @
d730ca1
...
...
@@ -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({
...
...
src/views/bieyuan/map.vue
View file @
d730ca1
...
...
@@ -324,6 +324,8 @@ export default {
});
// 设置贴片地图
this.setTitleLayer();
// 地图标题
document.title = data.map.map_title;
//
// setTimeout(() => {
// this.info_height = (0.5 * window.innerHeight);
...
...
src/views/by/map.vue
View file @
d730ca1
...
...
@@ -334,6 +334,8 @@ export default {
});
// 设置贴片地图
this.setTitleLayer();
// 地图标题
document.title = data.map.map_title;
//
// setTimeout(() => {
// this.info_height = (0.5 * window.innerHeight);
...
...
src/views/index.vue
View file @
d730ca1
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
4-10-12 15:25:25
* @LastEditTime: 202
5-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) {
...
...
src/views/xys/index.vue
View file @
d730ca1
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-02-
10 15:55:58
* @FilePath: /map-demo/src/views/xy
x
/index.vue
* @LastEditTime: 2025-02-
25 18:46:43
* @FilePath: /map-demo/src/views/xy
s
/index.vue
* @Description: 公众地图主体页面
-->
<template>
...
...
@@ -312,6 +312,8 @@ export default {
});
// 设置贴片地图
this.setTitleLayer();
// 地图标题
document.title = data.map.map_title;
},
watch: {
// show_popup(val) {
...
...
Please
register
or
login
to post a comment