Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2bc62bd2
authored
Apr 24, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新疆地图返回城市为空解决
1 parent
93d5ebfc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/views/account/components/baseInfo.vue
src/views/baseInfo/editInfo.vue
src/views/account/components/baseInfo.vue
View file @
2bc62bd
...
...
@@ -300,7 +300,7 @@ export default {
// 获取省市
var
provincecode
=
this
.
$refs
.
mapForm
.
geocoderAddress
.
adcode
var
province
=
fullAddress
.
province
var
city
=
fullAddress
.
city
var
city
=
fullAddress
.
city
?
fullAddress
.
city
:
fullAddress
.
district
const
municipalities
=
[
'北京市'
,
'天津市'
,
'上海市'
,
'重庆市'
]
var
municipality
=
municipalities
.
find
(
item
=>
item
==
province
)
if
(
municipality
)
{
...
...
src/views/baseInfo/editInfo.vue
View file @
2bc62bd
...
...
@@ -183,7 +183,7 @@ export default {
// 获取省市
var
provincecode
=
this
.
$refs
.
mapForm
.
geocoderAddress
.
adcode
var
province
=
fullAddress
.
province
var
city
=
fullAddress
.
city
var
city
=
fullAddress
.
city
?
fullAddress
.
city
:
fullAddress
.
district
const
municipalities
=
[
'北京市'
,
'天津市'
,
'上海市'
,
'重庆市'
]
var
municipality
=
municipalities
.
find
(
item
=>
item
==
province
)
if
(
municipality
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment