Skip to content

Commit 1a7cf7d

Browse files
committed
修改泰森分析,选择面分析后,返回地图,面还处于被选择状态
1 parent 281907b commit 1a7cf7d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎src/containers/analystView/pages/referenceAnalystView/ReferenceAnalystView.js‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,10 @@ export default class ReferenceAnalystView extends Component {
218218
? getLanguage(this.props.language).Analyst_Prompt.ANALYSIS_SUCCESS
219219
: getLanguage(this.props.language).Analyst_Prompt.ANALYSIS_FAIL,
220220
)
221-
if (result) {
221+
SMap.setAction(Action.SELECT).then(() => {
222222
SMap.setAction(Action.PAN)
223+
})
224+
if (result) {
223225
let layers = await this.props.getLayers()
224226
layers.length > 0 && (await SMap.setLayerFullView(layers[0].path))
225227

@@ -230,9 +232,12 @@ export default class ReferenceAnalystView extends Component {
230232
}
231233
}
232234
} catch (e) {
235+
SMap.setAction(Action.SELECT).then(() => {
236+
SMap.setAction(Action.PAN)
237+
})
233238
this.setLoading(false)
234239
Toast.show(
235-
getLanguage(this.props.language).Analyst_Prompt.ANALYSIS_SUCCESS,
240+
getLanguage(this.props.language).Analyst_Prompt.ANALYSIS_FAIL,
236241
)
237242
}
238243
})

0 commit comments

Comments
 (0)