Commit 33eed3a1 by hank

fix bug

parent d175d33f
...@@ -73,7 +73,7 @@ class Films extends Component { ...@@ -73,7 +73,7 @@ class Films extends Component {
showMyToast({ title: '删除成功~' }) showMyToast({ title: '删除成功~' })
} catch (error) { } catch (error) {
console.error(error) console.error(error)
showMyToast({ title: '失败成功~' }) showMyToast({ title: '删除失败' })
} }
} }
}) })
......
...@@ -104,6 +104,7 @@ class DeviceSelect extends Component { ...@@ -104,6 +104,7 @@ class DeviceSelect extends Component {
*/ */
const { cId } = this.$router.params const { cId } = this.$router.params
cId && cId &&
cId !== 'null' &&
api.common.getScheduleDetail(cId).then(res => { api.common.getScheduleDetail(cId).then(res => {
console.log(res) console.log(res)
const { equipmentInfos } = res const { equipmentInfos } = res
...@@ -177,7 +178,10 @@ class DeviceSelect extends Component { ...@@ -177,7 +178,10 @@ class DeviceSelect extends Component {
async updateBind() { async updateBind() {
// 更新设备绑定 // 更新设备绑定
const { checked, list } = this.state const { checked, list } = this.state
const { cId, fId } = this.$router.params let { cId, fId } = this.$router.params
if (cId === 'null') {
cId = ''
}
let checkedArr: any = [] let checkedArr: any = []
const equipmentsIds = [] const equipmentsIds = []
const equipmentTopicList = [] 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