Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
office-web-js
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
office-web-js
Commits
799391ce
Commit
799391ce
authored
Feb 09, 2023
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 地址设置默认状态
parent
d744442e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
src/views/Home/ContactPage.vue
+7
-1
No files found.
src/views/Home/ContactPage.vue
View file @
799391ce
...
@@ -98,12 +98,18 @@ export default {
...
@@ -98,12 +98,18 @@ export default {
return
this
.
locations
[
this
.
locationIndex
]
return
this
.
locations
[
this
.
locationIndex
]
},
},
},
},
created
()
{
this
.
setLocation
(
0
)
},
methods
:
{
methods
:
{
onLocationClicked
(
e
)
{
onLocationClicked
(
e
)
{
const
locationIndex
=
this
.
locations
.
findIndex
(
const
locationIndex
=
this
.
locations
.
findIndex
(
(
ee
)
=>
ee
.
city
===
e
.
target
.
getLabel
().
content
(
ee
)
=>
ee
.
city
===
e
.
target
.
getLabel
().
content
)
)
this
.
locationIndex
=
locationIndex
this
.
setLocation
(
locationIndex
)
},
setLocation
(
index
)
{
this
.
locationIndex
=
index
this
.
center
=
[
this
.
location
.
longitude
,
this
.
location
.
latitude
]
this
.
center
=
[
this
.
location
.
longitude
,
this
.
location
.
latitude
]
this
.
zoom
=
15
this
.
zoom
=
15
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment