优化错误提示
This commit is contained in:
@@ -236,7 +236,13 @@ export default {
|
||||
}).then((data) => {
|
||||
this.total = data.total
|
||||
this.deviceList = data.list
|
||||
}).finally(() => {
|
||||
}).catch((error) => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: error,
|
||||
type: 'error'
|
||||
})
|
||||
}).finally(() => {
|
||||
this.getDeviceListLoading = false
|
||||
})
|
||||
},
|
||||
@@ -256,6 +262,13 @@ export default {
|
||||
.then((data) => {
|
||||
this.getDeviceList()
|
||||
})
|
||||
.catch((error) => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: error,
|
||||
type: 'error'
|
||||
})
|
||||
})
|
||||
})
|
||||
},
|
||||
showChannelList: function(row) {
|
||||
@@ -284,7 +297,15 @@ export default {
|
||||
this.$refs.syncChannelProgress.openDialog(itemData.deviceId, () => {
|
||||
this.getDeviceList()
|
||||
})
|
||||
}).finally(() => {
|
||||
})
|
||||
.catch((error) => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: error,
|
||||
type: 'error'
|
||||
})
|
||||
})
|
||||
.finally(() => {
|
||||
this.getDeviceList()
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user