toast
This commit is contained in:
@@ -123,7 +123,7 @@ export default {
|
||||
return {
|
||||
interTime: this.$store.getters.setTime,
|
||||
timer: null,
|
||||
show: false,
|
||||
show: true,
|
||||
result: [],
|
||||
obj: {},
|
||||
status: {},
|
||||
@@ -157,12 +157,14 @@ export default {
|
||||
switchDown (type, bool) {
|
||||
this.disabled = true
|
||||
if (type === '5' && this.switch4 === '0' && this.switch5 === '1') {
|
||||
this.toast('RC控制与Joy控制不能同时开启')
|
||||
// this.toast('RC控制与Joy控制不能同时开启')
|
||||
this.toast(this.$t('vehiclecontrol.toast2'))
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
if (type === '6' && this.switch4 === '1' && this.switch5 === '0') {
|
||||
this.toast('RC控制与Joy控制不能同时开启')
|
||||
// this.toast('RC控制与Joy控制不能同时开启')
|
||||
this.toast(this.$t('vehiclecontrol.toast2'))
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
@@ -197,7 +199,7 @@ export default {
|
||||
this.refresh()
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
this.toast('操作失败')
|
||||
this.toast(this.$t('common.operationfailed'))
|
||||
this.refresh()
|
||||
}
|
||||
},
|
||||
@@ -222,7 +224,8 @@ export default {
|
||||
async _restCoordinate () {
|
||||
this.disabled = true
|
||||
if (JSON.stringify(this.obj) === '{}') {
|
||||
this.toast('请选择坐标')
|
||||
// this.toast('请选择坐标')
|
||||
this.toast(this.$t('vehiclecontrol.toast1'))
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user