Commit 33eed3a1 by hank

fix bug

parent d175d33f
......@@ -73,7 +73,7 @@ class Films extends Component {
showMyToast({ title: '删除成功~' })
} catch (error) {
console.error(error)
showMyToast({ title: '失败成功~' })
showMyToast({ title: '删除失败' })
}
}
})
......
......@@ -104,6 +104,7 @@ class DeviceSelect extends Component {
*/
const { cId } = this.$router.params
cId &&
cId !== 'null' &&
api.common.getScheduleDetail(cId).then(res => {
console.log(res)
const { equipmentInfos } = res
......@@ -177,7 +178,10 @@ class DeviceSelect extends Component {
async updateBind() {
// 更新设备绑定
const { checked, list } = this.state
const { cId, fId } = this.$router.params
let { cId, fId } = this.$router.params
if (cId === 'null') {
cId = ''
}
let checkedArr: any = []
const equipmentsIds = []
const equipmentTopicList = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment