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-03-06 11:13:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bddf4af7657add03efde4ce21300c006f3f2bf33
bddf4af7
1 parent
f0496fb3
fix
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
.eslintrc-auto-import.json
src/auto-imports.d.ts
src/views/by/map.vue
.eslintrc-auto-import.json
View file @
bddf4af
{
"globals"
:
{
"EffectScope"
:
true
,
"ElMessage"
:
true
,
"computed"
:
true
,
"createApp"
:
true
,
"customRef"
:
true
,
...
...
src/auto-imports.d.ts
View file @
bddf4af
...
...
@@ -2,7 +2,6 @@
export
{}
declare
global
{
const
EffectScope
:
typeof
import
(
'vue'
)[
'EffectScope'
]
const
ElMessage
:
typeof
import
(
'element-plus/es'
)[
'ElMessage'
]
const
computed
:
typeof
import
(
'vue'
)[
'computed'
]
const
createApp
:
typeof
import
(
'vue'
)[
'createApp'
]
const
customRef
:
typeof
import
(
'vue'
)[
'customRef'
]
...
...
src/views/by/map.vue
View file @
bddf4af
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-03-06 10:3
1:16
* @LastEditTime: 2025-03-06 10:3
6:30
* @FilePath: /map-demo/src/views/by/map.vue
* @Description: 公众地图主体页面
-->
...
...
@@ -576,10 +576,10 @@ export default {
},
setLocation() { // 开启定位服务
// 获取失败
if (!this.current_lng || !this.current_lat) {
this.dialog_show = true;
this.dialog_text = '获取经纬度失败';
}
//
if (!this.current_lng || !this.current_lat) {
//
this.dialog_show = true;
//
this.dialog_text = '获取经纬度失败';
//
}
this.getLocation();
},
getLocation() { // 获取经纬度
...
...
Please
register
or
login
to post a comment