重定位修改
This commit is contained in:
@@ -209,9 +209,10 @@ export default {
|
||||
cancelButtonText: this.$t('no'),
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this._sendAutoBack()
|
||||
this._sendAutoBack('0')
|
||||
this.backActive = false
|
||||
}).catch(() => {
|
||||
this._sendAutoBack('1')
|
||||
this.backActive = false
|
||||
})
|
||||
}
|
||||
@@ -505,19 +506,21 @@ export default {
|
||||
}
|
||||
},
|
||||
// 打点功能点击返回成功后
|
||||
async _sendAutoBack () {
|
||||
async _sendAutoBack (flag) {
|
||||
try {
|
||||
this.loading = this.$loading({
|
||||
lock: true,
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.6)'
|
||||
})
|
||||
let res = await sendAutoBack()
|
||||
let res = await sendAutoBack(flag)
|
||||
if (res && res.code === 200) {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.glMap.closeWebSocket()
|
||||
})
|
||||
this.tipShow = true
|
||||
if (flag === '0') {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.glMap.closeWebSocket()
|
||||
})
|
||||
this.tipShow = true
|
||||
}
|
||||
}
|
||||
this.loading.close()
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user