[1078] 兼容2013版本的设备属性查询和注册鉴权
This commit is contained in:
@@ -54,7 +54,7 @@ export default {
|
||||
console.log(this.jtChannel)
|
||||
const isEdit = typeof (this.jtChannel.id) !== 'undefined'
|
||||
if (isEdit) {
|
||||
this.$store.dispatch('jtDevice/updateChannel')
|
||||
this.$store.dispatch('jtDevice/updateChannel', this.jtChannel)
|
||||
.then(data => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
@@ -67,7 +67,7 @@ export default {
|
||||
console.log(error)
|
||||
})
|
||||
} else {
|
||||
this.$store.dispatch('jtDevice/addChannel')
|
||||
this.$store.dispatch('jtDevice/addChannel', this.jtChannel)
|
||||
.then(data => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
|
||||
Reference in New Issue
Block a user