[1078] 兼容2013版本的设备属性查询和注册鉴权

This commit is contained in:
lin
2025-07-07 17:23:12 +08:00
parent 93c24a74e6
commit fae839af05
7 changed files with 29 additions and 21 deletions

View File

@@ -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,