|
@@ -143,9 +143,10 @@ export default {
|
|
|
const baseList = await this.$http.get(`/api/base`)
|
|
|
let list = mapOfTongren.features.map((item) => {
|
|
|
const baseItem =
|
|
|
- baseList.find(
|
|
|
- (baseItem) =>
|
|
|
- String(baseItem.名称) === String(item.properties.name)
|
|
|
+ baseList.find((baseItem) =>
|
|
|
+ String(baseItem.名称).includes(
|
|
|
+ String(item.properties.name.slice(0, 2))
|
|
|
+ )
|
|
|
) || {}
|
|
|
item.baseItem = baseItem
|
|
|
return item
|